35 static inline __attribute__((always_inline))
unsigned int irq_disable(
void)
37 uint32_t mask = __get_PRIMASK();
46 static inline __attribute__((always_inline)) __attribute__((used))
unsigned int
49 unsigned result = __get_PRIMASK();
58 static inline __attribute__((always_inline))
void irq_restore(
67 static inline __attribute__((always_inline))
int irq_is_in(
void)
69 return (__get_IPSR() & 0xFF);