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 |
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, and LED_On.
Referenced by main().
|
inlinestatic |
int main | ( | void | ) |
Main function.
Main function.
This function initializes the MAC, initiates a MLME reset request (wpan_mlme_reset_req()), and implements a the main loop.
Main function.
The master example begins by initializing required board resources. The system clock, basic GPIO pin mapping, and interrupt vectors are established.
A memory location on a TWI slave is written with a fixed test pattern which is then read back into a separate buffer. As a basic sanity check, the original write-buffer values are compared with values read from the slave to a separate buffer. An LED on the development board is illuminated when there is a match between the written and read data.
Main function.
Main function.
Initializes the clock system, board and serial output, then sets up the Sleep Manager unit test suite and runs it.
Main function.
Initializes the clock system, board and serial output, then sets up the IOPORT Service unit test suite and runs it.
The SAM3X_EK, SAM3X Arduino board and SAM4C_EK use two bytes length internal address EEPROM.
References board_init(), cpu_irq_disable, cpu_irq_enable, ext_int_callback(), ext_int_init(), ext_int_set_interrupt_callback(), and sysclk_init().