mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-23 23:47:45 +00:00
A little code consolidation -- M0APP IRQ.
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user