Sleep manager example for SAM4L series.
Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
#include <asf.h>
#include <conf_example.h>
Functions | |
static void | ast_per_interrupt_callback (void) |
int | main (void) |
|
static |
References ast_clear_interrupt_flag(), and AST_INTERRUPT_PER.
Referenced by main().
int main | ( | void | ) |
References ast_clear_interrupt_flag(), AST_COUNTER_MODE, ast_enable(), ast_enable_event(), ast_enable_wakeup(), AST_EVENT_PER, AST_INTERRUPT_PER, AST_OSC_1KHZ, ast_per_interrupt_callback(), AST_PSEL_32KHZ_1HZ, ast_set_callback(), ast_set_config(), AST_WAKEUP_PER, ast_write_periodic0_value(), board_init(), bpm_enable_wakeup_source(), ast_config::counter, delay_s, ioport_set_pin_level(), ast_config::mode, osc_priv_enable_osc32(), ast_config::osc_type, ast_config::psel, SLEEPMGR_ACTIVE, sleepmgr_enter_sleep(), sleepmgr_init(), sleepmgr_lock_mode(), SLEEPMGR_NR_OF_MODES, sleepmgr_unlock_mode(), and sysclk_init().