External Interrupt example for megaRF device.
Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
Functions | |
static void | ext_int_callback (void) |
Interrupt callback for External interrupt Switch ON LED on the board for some time and then switches OFF when the interrupt is triggered. More... | |
static void | ext_int_delay (void) |
delay routine for LED to be ON for some time More... | |
int | main (void) |
Main function. More... | |
|
static |
Interrupt callback for External interrupt Switch ON LED on the board for some time and then switches OFF when the interrupt is triggered.
none |
References ext_int_delay(), LED_Off, LED_On, and LED_PIN.
Referenced by main().
|
inlinestatic |
int main | ( | void | ) |
Main function.
References board_init(), BUTTON_INTERRUPT_MODE, BUTTON_INTERRUPT_SOURCE, cpu_irq_disable, cpu_irq_enable, ext_int_callback(), ext_int_init(), ext_int_set_interrupt_callback(), and sysclk_init().