External Interrupt Controller Example for SAM4L.
Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
#include "asf.h"
#include "conf_eic_example.h"
Macros | |
#define | STRING_EOL "\r" |
#define | STRING_HEADER |
Functions | |
static void | configure_console (void) |
Configure UART console. More... | |
static void | eic_callback (void) |
[eic_example_code] More... | |
static void | eic_setup (void) |
[set_eic_callback] More... | |
int | main (void) |
[eic_setup] [eic_example_code] More... | |
static void | set_toggle_flag (void) |
Interrupt handler for EIC interrupt. More... | |
Variables | |
volatile uint8_t | bToggle = 0 |
#define STRING_EOL "\r" |
#define STRING_HEADER |
Referenced by main().
|
static |
Configure UART console.
References uart_rs232_options::baudrate, and stdio_serial_init().
Referenced by main().
|
static |
[eic_example_code]
Interrupt handler for EIC interrupt.[set_eic_callback]
|
static |
[set_eic_callback]
EIC Setup[eic_setup]
[enable_eic_module]
[enable_eic_module]
[configure_eic_mode]
[configure_eic_mode]
[set_eic_callback_1]
[set_eic_callback_1]
[enable_eic_line]
[enable_eic_line]
Referenced by main().
int main | ( | void | ) |
[eic_setup] [eic_example_code]
Application entry point for eic example.
References board_init(), bToggle, configure_console(), eic_setup(), ioport_toggle_port_level(), STRING_HEADER, and sysclk_init().
|
static |
Interrupt handler for EIC interrupt.
References bToggle, eic_line_clear_interrupt(), and eic_line_interrupt_is_pending().
volatile uint8_t bToggle = 0 |
Referenced by main(), and set_toggle_flag().