#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 |
|
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_GAIN_FACTOR_1X, adc_get_config_defaults(), adc_init(), ADC_POSITIVE_INPUT_PIN4, ADC_REFERENCE_INT1V, 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, adc_config::gain_factor, GCLK_GENERATOR_4, module_inst, 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 | ) |
|
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_init(), and adc_setup().
struct rtc_module rtc_instance |
Referenced by rtc_setup().