SAM D21 Analog Comparator Examples.
Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.
#include <asf.h>
Macros | |
#define | AC_FALSE_SPIKE_PREVENTER 2 |
#define | AC_LEVEL_CROSS_DETECTOR 0 |
#define | AC_MODE AC_LEVEL_CROSS_DETECTOR |
#define | AC_SLEEP_WALKING 3 |
#define | AC_WINDOW_DETECTOR 1 |
#define | CONF_EVENT_GENERATOR EVSYS_ID_GEN_RTC_OVF |
#define | CONF_EVENT_USER EVSYS_ID_USER_AC_SOC_0 |
Functions | |
void | ac_detect_callback (struct ac_module *const module_inst) |
void | configure_ac (void) |
void | configure_event (void) |
void | configure_rtc (void) |
int | main (void) |
Variables | |
struct ac_module | ac_instance |
struct events_resource | resource |
struct rtc_module | rtc_instance |
[rtc_module_instance] More... | |
#define AC_FALSE_SPIKE_PREVENTER 2 |
#define AC_LEVEL_CROSS_DETECTOR 0 |
#define AC_MODE AC_LEVEL_CROSS_DETECTOR |
#define AC_SLEEP_WALKING 3 |
#define AC_WINDOW_DETECTOR 1 |
#define CONF_EVENT_GENERATOR EVSYS_ID_GEN_RTC_OVF |
Referenced by configure_event_channel().
#define CONF_EVENT_USER EVSYS_ID_USER_AC_SOC_0 |
Referenced by configure_event_user().
void ac_detect_callback | ( | struct ac_module *const | module_inst | ) |
void configure_ac | ( | void | ) |
void configure_event | ( | void | ) |
Referenced by main().
void configure_rtc | ( | void | ) |
Referenced by main().
int main | ( | void | ) |
struct events_resource resource |
Referenced by dma_allocate(), DMAC_Handler(), and events_add_hook().
struct rtc_module rtc_instance |
[rtc_module_instance]
[rtc_module_instance]
[rtc_module_inst]