#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_config::accumulate_samples, ADC_ACCUMULATE_SAMPLES_16, ADC_CALLBACK_WINDOW, ADC_CLOCK_PRESCALER_DIV4, ADC_DIVIDE_RESULT_16, adc_enable(), adc_enable_callback(), ADC_EVENT_ACTION_START_CONV, adc_get_config_defaults(), adc_init(), ADC_POSITIVE_INPUT_PIN4, ADC_REFERENCE_INTREF, adc_register_callback(), ADC_RESOLUTION_CUSTOM, adc_window_callback(), ADC_WINDOW_MODE_BELOW_UPPER, adc_config::clock_prescaler, adc_config::clock_source, adc_config::divide_result, adc_config::event_action, GCLK_GENERATOR_4, module_inst, adc_config::on_demand, adc_config::positive_input, adc_config::reference, adc_config::resolution, adc_config::run_in_standby, adc_config::window, adc_window_config::window_mode, and adc_window_config::window_upper_value.
Referenced by main().
|
static |
References low_voltage.
Referenced by adc_setup().
|
static |
References events_allocate(), events_attach_user(), events_get_config_defaults(), EVENTS_PATH_ASYNCHRONOUS, events_config::generator, and events_config::path.
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 ac_init(), adc_init(), adc_setup(), dac_init(), http_client_timer_callback(), tc_init(), tcc_init(), trng_init(), and usb_init().
struct rtc_module rtc_instance |
[rtc_module_instance]
[rtc_module_instance]
[rtc_module_inst]