30 #ifndef UTILS_INTERRUPT_INTERRUPT_H 31 #define UTILS_INTERRUPT_INTERRUPT_H 77 # define irq_initialize_vectors() \ 98 # define irq_register_handler(...) \ 104 # define cpu_irq_enable() \ 106 g_interrupt_enabled = 1; \ 110 # define cpu_irq_disable() \ 114 g_interrupt_enabled = 0; \ 117 typedef uint32_t irqflags_t;
120 static inline irqflags_t cpu_irq_save(
void)
127 static inline int cpu_irq_is_enabled_flags(irqflags_t flags)
132 static inline void cpu_irq_restore(irqflags_t flags)
134 if (cpu_irq_is_enabled_flags(flags))
138 #define cpu_irq_is_enabled() g_interrupt_enabled 145 #define Enable_global_interrupt() cpu_irq_enable() 146 #define Disable_global_interrupt() cpu_irq_disable() 147 #define Is_global_interrupt_enabled() cpu_irq_is_enabled() int g_interrupt_enabled
Global NVIC interrupt enable status (by default it's enabled)
Definition: interrupt_sam_nvic.c:33