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

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...
 

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.

Referenced by main().

volatile bool bCancelSwDelay = false
static

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

Referenced by eic_nmi_handler(), 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_nmi_handler(), and main().