Sleep manager example for SAM series.
Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries.
#include <asf.h>
#include <conf_example.h>
Macros | |
#define | ACTIVE_TIME 3 |
#define | SLEEP_TIME 5 |
Functions | |
int | main (void) |
void | RTT_Handler (void) |
#define ACTIVE_TIME 3 |
Referenced by main().
#define SLEEP_TIME 5 |
Referenced by main().
int main | ( | void | ) |
References ACTIVE_TIME, board_init(), delay_s, ioport_set_pin_level(), pmc_set_fast_startup_input(), rtt_enable_interrupt(), rtt_init(), rtt_read_timer_value(), rtt_write_alarm_time(), SLEEP_TIME, SLEEPMGR_ACTIVE, sleepmgr_enter_sleep(), sleepmgr_init(), sleepmgr_lock_mode(), SLEEPMGR_NR_OF_MODES, sleepmgr_unlock_mode(), supc_set_wakeup_mode(), and sysclk_init().
void RTT_Handler | ( | void | ) |
References rtt_get_status().