Microchip® Advanced Software Framework

eic_example.c File Reference

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
Value:
"-- EIC Example --\r\n" \
"-- "BOARD_NAME" --\r\n" \
"-- Compiled: "__DATE__" "__TIME__" --"STRING_EOL
#define STRING_EOL
Definition: eic_example.c:76
#define BOARD_NAME
Name string macro.
Definition: sam4l8_xplained_pro.h:86

Referenced by main().

static void configure_console ( void  )
static
static void eic_callback ( void  )
static

[eic_example_code]

Interrupt handler for EIC interrupt.[set_eic_callback]

static void eic_setup ( void  )
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.

Returns
Unused (ANSI-C compatibility).

References board_init(), bToggle, configure_console(), eic_setup(), EXAMPLE_LED_MASK, EXAMPLE_LED_PORT, ioport_toggle_port_level(), STRING_HEADER, and sysclk_init().

static void set_toggle_flag ( void  )
static

Interrupt handler for EIC interrupt.

References bToggle, eic_line_clear_interrupt(), eic_line_interrupt_is_pending(), and GPIO_PUSH_BUTTON_EIC_LINE.

volatile uint8_t bToggle = 0

Referenced by main(), and set_toggle_flag().