Microchip® Advanced Software Framework

ext_int_example1.c File Reference

External Interrupt example for megaRF device.

Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.

#include <asf.h>
#include <conf_example.h>
#include <conf_interrupt.h>

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

Interrupt callback for External interrupt Switch ON LED on the board for some time and then switches OFF when the interrupt is triggered.

Parameters
none

References ext_int_delay(), LED_Off, LED_On, and LED_PIN.

Referenced by main().

static void ext_int_delay ( void  )
inlinestatic

delay routine for LED to be ON for some time

Parameters
none

Referenced by ext_int_callback().