A little code consolidation -- M0APP IRQ.

This commit is contained in:
Jared Boone 2016-01-04 10:12:18 -08:00
parent cd17f414b7
commit 778e2d2381
6 changed files with 31 additions and 87 deletions

View file

@ -57,6 +57,16 @@ inline void clear() {
namespace m0apptxevent {
#if defined(LPC43XX_M4)
inline void enable() {
nvicEnableVector(M0CORE_IRQn, CORTEX_PRIORITY_MASK(LPC43XX_M0APPTXEVENT_IRQ_PRIORITY));
}
inline void disable() {
nvicDisableVector(M0CORE_IRQn);
}
#endif
#if defined(LPC43XX_M0)
inline void assert() {
__SEV();