Atmel Software Framework

eic_example2.c File Reference
#include <avr32/io.h>
#include "compiler.h"
#include "gpio.h"
#include "board.h"
#include "eic.h"
#include "intc.h"
#include "conf_example2.h"

Functions

static void eic_int_handler1 (void)
 Interrupt handler of the External interrupt line "1". More...
 
static void eic_int_handler2 (void)
 Interrupt handler of the External interrupt line "2". More...
 
void eic_nmi_handler (void)
 Interrupt handler of the External interrupt line "1" assigned to the NMI exception. More...
 
int main (void)
 
static void software_delay (void)
 

Variables

static volatile bool bCancelSwDelay = false
 Global var used to cancel the software delay if an External Interrupt occurs. More...
 
eic_options_t eic_options [EXT_INT_EXAMPLE_NB_LINES]
 Structure holding the configuration parameters of the EIC module. More...
 
unsigned char key_number =0
 Global var used to switch between different LED patterns. More...
 

static void eic_int_handler1 ( void  )
static

Interrupt handler of the External interrupt line "1".

References bCancelSwDelay, eic_clear_interrupt_line(), EXT_INT_EXAMPLE_LINE1, and key_number.

Referenced by main().

static void eic_int_handler2 ( void  )
static

Interrupt handler of the External interrupt line "2".

References bCancelSwDelay, eic_clear_interrupt_line(), EXT_INT_EXAMPLE_LINE2, and key_number.

Referenced by main().

void eic_nmi_handler ( void  )

Interrupt handler of the External interrupt line "1" assigned to the NMI exception.

Note
This function is not static because it is referenced outside (in exception.S for GCC and in exception.s82 for IAR).

References bCancelSwDelay, eic_clear_interrupt_line(), EXT_INT_EXAMPLE_LINE1, and key_number.

static void software_delay ( void  )
static

References bCancelSwDelay, and i.

Referenced by main().

volatile bool bCancelSwDelay = false
static

Global var used to cancel the software delay if an External Interrupt occurs.

Referenced by eic_int_handler1(), eic_int_handler2(), eic_nmi_handler(), and software_delay().

eic_options_t eic_options[EXT_INT_EXAMPLE_NB_LINES]

Structure holding the configuration parameters of the EIC module.

Referenced by main().

unsigned char key_number =0

Global var used to switch between different LED patterns.

Referenced by eic_int_handler1(), eic_int_handler2(), eic_nmi_handler(), and main().