mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-24 09:21:33 -04:00
Consolidate M0-specific code.
This commit is contained in:
parent
a27489eb21
commit
b058c0fe00
4 changed files with 11 additions and 7 deletions
|
@ -58,6 +58,16 @@ static_assert(offsetof(LPC_CREG_Type, USB1FLADJ) == 0x600, "USB1FLADJ offset wro
|
|||
|
||||
namespace m4txevent {
|
||||
|
||||
#if defined(LPC43XX_M0)
|
||||
inline void enable() {
|
||||
nvicEnableVector(M4CORE_IRQn, CORTEX_PRIORITY_MASK(LPC43XX_M4TXEVENT_IRQ_PRIORITY));
|
||||
}
|
||||
|
||||
inline void disable() {
|
||||
nvicDisableVector(M4CORE_IRQn);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(LPC43XX_M4)
|
||||
inline void assert() {
|
||||
__SEV();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue