Microchip® Advanced 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...
 
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().

static void software_delay ( void  )
static

References bCancelSwDelay.

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(), and software_delay().

Structure holding the configuration parameters of the EIC module.

unsigned char key_number =0

Global var used to switch between different LED patterns.

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