| Xmega Application Note | |||||
Global interrupt management for 32-bit AVR. More...
#include <compiler.h>#include <preprocessor/tpaste.h>
Go to the source code of this file.
Defines | |
| #define | cpu_irq_is_enabled() cpu_irq_is_enabled_flags(sysreg_read(AVR32_SR)) |
| #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 | |
| |
| #define | AVR32_ENTER_CRITICAL_REGION() |
| Start section with code protected against interrupts. | |
| #define | AVR32_LEAVE_CRITICAL_REGION() |
| End section with code protected against interrupts. | |
Global interrupt levels | |
|
| |
| #define | cpu_irq_level_is_enabled(level) |
| Check if interrupt level is enabled. | |
| static bool | cpu_irq_level_is_enabled_flags (irqflags_t flags, uint32_t level) |
| Check if interrupt level is enabled in supplied flags. | |
Global interrupt flags | |
|
| |
| typedef uint32_t | irqflags_t |
| Type used for holding state of interrupt flag. | |
| static bool | cpu_irq_is_enabled_flags (irqflags_t flags) |
| Check if interrupts are globally enabled in supplied flags. | |
| static void | cpu_irq_restore (irqflags_t flags) |
| Restore global interrupt flags. | |
| static irqflags_t | cpu_irq_save (void) |
| Get and clear the global interrupt flags. | |
Global interrupt management for 32-bit AVR.
Copyright (C) 2010 Atmel Corporation. All rights reserved.
Definition in file interrupt_avr32.h.
Generated on Fri Oct 22 12:15:25 2010 for AVR1300 Using the Xmega ADC by 1.6.3
|