#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 |
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 |
Interrupt handler of the External interrupt line "2".
References bCancelSwDelay, eic_clear_interrupt_line(), EXT_INT_EXAMPLE_LINE2, and key_number.
Referenced by main().
int main | ( | void | ) |
References Disable_global_interrupt, eic_options_t::eic_async, eic_options_t::eic_edge, EIC_EDGE_FALLING_EDGE, eic_enable_interrupt_line(), eic_enable_interrupt_lines(), eic_enable_line(), eic_enable_lines(), eic_init(), eic_int_handler1(), eic_int_handler2(), eic_options_t::eic_line, eic_options_t::eic_mode, EIC_MODE_EDGE_TRIGGERED, EIC_SYNCH_MODE, Enable_global_interrupt, EXT_INT_EXAMPLE_FUNCTION_LINE1, EXT_INT_EXAMPLE_FUNCTION_LINE2, EXT_INT_EXAMPLE_IRQ_LINE1, EXT_INT_EXAMPLE_IRQ_LINE2, EXT_INT_EXAMPLE_LINE1, EXT_INT_EXAMPLE_LINE2, EXT_INT_EXAMPLE_NB_LINES, EXT_INT_EXAMPLE_PIN_LINE1, EXT_INT_EXAMPLE_PIN_LINE2, gpio_clr_gpio_pin(), gpio_enable_module(), gpio_enable_module_pin(), gpio_set_gpio_pin(), INTC_init_interrupts(), INTC_register_interrupt(), key_number, LED0_GPIO, LED1_GPIO, and software_delay().
|
static |
References bCancelSwDelay.
Referenced by main().
Global var used to cancel the software delay if an External Interrupt occurs.
Referenced by eic_int_handler1(), eic_int_handler2(), and software_delay().
eic_options_t eic_options[EXT_INT_EXAMPLE_NB_LINES] |
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().