Go to the documentation of this file.
41 __attribute__((always_inline))
static inline unsigned int irq_disable(
void)
45 "in %[dest], __SREG__" "\n\t"
57 __attribute__((always_inline))
static inline unsigned int irq_enable(
void)
61 "in %[dest], __SREG__" "\n\t"
73 __attribute__((always_inline))
static inline void irq_restore(
unsigned int _state)
75 uint8_t state = (uint8_t)_state;
88 "sbrc %[state], 7" "\n\t"
99 __attribute__((always_inline))
static inline int irq_is_in(
void)
static unsigned int irq_disable(void)
Disable all maskable interrupts.
static void irq_restore(unsigned int _state)
Restore the state of the IRQ flags.
#define ATMEGA_STATE_FLAG_ISR
In ISR.
static uint8_t atmega_get_state(void)
Atomically read the state (atmega_state)
static int irq_is_in(void)
See if the current context is inside an ISR.
static unsigned int irq_enable(void)
Enable all maskable interrupts.