SAM LED Toggle Example.
Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
#include <asf.h>
Functions | |
static void | config_led (void) |
Configure LED0, turn it off. More... | |
int | main (void) |
void | SysTick_Handler (void) |
Handler for the device SysTick module, called when the SysTick counter reaches the set period. More... | |
|
static |
Configure LED0, turn it off.
References port_config::direction, LED_0_INACTIVE, LED_0_PIN, port_get_config_defaults(), PORT_PIN_DIR_OUTPUT, port_pin_set_config(), and port_pin_set_output_level().
Referenced by main().
int main | ( | void | ) |
References config_led(), GCLK_GENERATOR_0, system_gclk_gen_get_hz(), and system_init().
void SysTick_Handler | ( | void | ) |
Handler for the device SysTick module, called when the SysTick counter reaches the set period.
References LED_0_PIN, and port_pin_toggle_output_level().