Atmel Software Framework

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Deprecated interrupt definitions

Macros

#define Disable_global_interrupt()   cpu_irq_disable()
 
#define Disable_interrupt_level(level)   cpu_irq_disable_level(level)
 
#define Enable_global_interrupt()   cpu_irq_enable()
 
#define Enable_interrupt_level(level)   cpu_irq_enable_level(level)
 
#define Is_global_interrupt_enabled()   cpu_irq_is_enabled()
 
#define Is_interrupt_level_enabled(level)   cpu_irq_level_is_enabled(level)
 

Interrupt protection of code sections

Note
Use cpu_irq_save and cpu_irq_restore instead of these macros.
#define AVR32_ENTER_CRITICAL_REGION()
 Start section with code protected against interrupts. More...
 
#define AVR32_LEAVE_CRITICAL_REGION()
 End section with code protected against interrupts. More...
 

#define AVR32_ENTER_CRITICAL_REGION ( )
Value:
{ \
bool global_interrupt_enabled = Is_global_interrupt_enabled(); \
unsigned char bool
Boolean.
Definition: compiler.h:215
#define Disable_global_interrupt()
Definition: interrupt_avr32.h:313
#define Is_global_interrupt_enabled()
Definition: interrupt_avr32.h:314

Start section with code protected against interrupts.

#define AVR32_LEAVE_CRITICAL_REGION ( )
Value:
if (global_interrupt_enabled) Enable_global_interrupt(); \
}
#define Enable_global_interrupt()
Definition: interrupt_avr32.h:312

End section with code protected against interrupts.

Note
This macro must always be used in conjunction with AVR32_ENTER_CRITICAL_REGION so that interrupts are enabled again.
#define Disable_interrupt_level (   level)    cpu_irq_disable_level(level)
#define Enable_interrupt_level (   level)    cpu_irq_enable_level(level)
#define Is_interrupt_level_enabled (   level)    cpu_irq_level_is_enabled(level)