Atmel Software Framework

interrupt_avr8.h File Reference

Global interrupt management for 8-bit AVR.

Copyright (C) 2010-2016 Atmel Corporation. All rights reserved.

#include <compiler.h>
#include <parts.h>

Macros

#define Disable_global_interrupt()   cpu_irq_disable()
 
#define Enable_global_interrupt()   cpu_irq_enable()
 
#define Is_global_interrupt_enabled()   cpu_irq_is_enabled()
 
#define ISR(vect)
 Define service routine for specified interrupt vector. More...
 

Global interrupt flags

#define cpu_irq_enable()   sei()
 Enable interrupts globally. More...
 
#define cpu_irq_disable()   cli()
 Disable interrupts globally. More...
 
#define cpu_irq_is_enabled()   cpu_irq_is_enabled_flags(SREG)
 Check if interrupts are globally enabled. More...
 
typedef uint8_t irqflags_t
 Type used for holding state of interrupt flag. More...
 
static irqflags_t cpu_irq_save (void)
 Get and clear the global interrupt flags. More...
 
static void cpu_irq_restore (irqflags_t flags)
 Restore global interrupt flags. More...
 
static bool cpu_irq_is_enabled_flags (irqflags_t flags)
 Check if interrupts are globally enabled in supplied flags. More...