mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-28 11:12:26 -04:00
A little code consolidation -- M0APP IRQ.
This commit is contained in:
parent
cd17f414b7
commit
778e2d2381
6 changed files with 31 additions and 87 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue