#include <asf.h>
Functions | |
static void | adc_setup (void) |
static void | adc_window_callback (struct adc_module *const module) |
static void | event_setup (struct events_resource *event) |
int | main (void) |
static void | rtc_setup (void) |
Variables | |
volatile bool | low_voltage = false |
struct adc_module | module_inst |
struct rtc_module | rtc_instance |
[rtc_module_instance] More... | |
|
static |
References adc_enable(), adc_enable_callback(), adc_get_config_defaults(), adc_init(), adc_register_callback(), adc_window_callback(), GCLK_GENERATOR_4, and module_inst.
Referenced by main().
|
static |
References low_voltage.
Referenced by adc_setup().
|
static |
Referenced by main().
int main | ( | void | ) |
References adc_setup(), delay_init(), delay_ms, event_setup(), low_voltage, port_pin_toggle_output_level(), rtc_setup(), system_init(), system_interrupt_enable_global(), system_set_sleepmode(), system_sleep(), SYSTEM_SLEEPMODE_STANDBY, system_standby_get_config_defaults(), and system_standby_set_config().
|
static |
References rtc_count_config::clear_on_match, rtc_count_config::compare_values, rtc_count_events::generate_event_on_compare, rtc_count_config::mode, rtc_count_config::prescaler, rtc_count_enable(), rtc_count_enable_events(), rtc_count_get_config_defaults(), rtc_count_init(), RTC_COUNT_MODE_32BIT, RTC_COUNT_PRESCALER_DIV_1, and rtc_instance.
Referenced by main().
Referenced by adc_window_callback(), and main().
struct adc_module module_inst |
Referenced by adc_setup(), tcc_init(), and usb_init().
struct rtc_module rtc_instance |
[rtc_module_instance]
Referenced by configure_rtc(), configure_rtc_calendar(), configure_rtc_callbacks(), configure_rtc_count(), get_fattime(), main(), rtc_match_callback(), rtc_overflow_callback(), rtc_setup(), sleepMgr_init(), and sleepMgr_sleep().