SAM4L Analog Comparator Interfacer (ACIFC) example.
Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | EXAMPLE_AC_CHANNEL 0 |
[acifc_define_channel] More... | |
#define | STRING_EOL "\r" |
[acifc_define_channel] More... | |
#define | STRING_HEADER |
Functions | |
static void | compare_result_output (void) |
Callback for channel 0 comparison done. More... | |
static void | configure_console (void) |
Configure UART console. More... | |
int | main (void) |
ACIFC example application entry point. More... | |
Variables | |
struct ac_dev_inst | ac_device |
[acifc_struct_declaration] More... | |
volatile bool | state = false |
[acifc_struct_declaration] More... | |
#define EXAMPLE_AC_CHANNEL 0 |
#define STRING_EOL "\r" |
[acifc_define_channel]
#define STRING_HEADER |
Referenced by main().
|
static |
Callback for channel 0 comparison done.
References ac_clear_interrupt_status(), ac_device, ac_get_status(), and state.
Referenced by main().
|
static |
Configure UART console.
References uart_rs232_options::baudrate, and stdio_serial_init().
Referenced by main().
int main | ( | void | ) |
ACIFC example application entry point.
[acifc_init_and_configure]
AC instance configuration
[acifc_init_and_configure_1]
[acifc_init_and_configure_1]
AC channel configuration
[acifc_init_and_configure_2]
[acifc_init_and_configure_2] [acifc_init_and_configure]
References ac_ch_get_config_defaults(), ac_ch_set_config(), ac_device, ac_enable(), ac_get_config_defaults(), ac_init(), AC_INTERRUPT_CONVERSION_COMPLETED_0, ac_set_callback(), ac_user_trigger_single_comparison(), ac_ch_config::always_on, board_init(), compare_result_output(), configure_console(), delay_ms, EXAMPLE_AC_CHANNEL, ac_ch_config::fast_mode, state, STRING_HEADER, and sysclk_init().
struct ac_dev_inst ac_device |
[acifc_struct_declaration]
Referenced by compare_result_output(), main(), run_ac_test(), and set_int_flag().
[acifc_struct_declaration]
Referenced by aes_callback(), aes_callback_pdca(), cbc_mode_test(), cfb128_mode_test(), compare_result_output(), ctr_mode_test(), ecb_mode_test(), ecb_mode_test_pdca(), main(), netif_add(), nwkFrameAlloc(), ofb_mode_test(), run_cbc_mode_test(), run_cfb128_mode_test(), run_ctr_mode_test(), run_ecb_mode_test(), run_ecb_mode_test_pdca(), run_ofb_mode_test(), sd_mmc_select_slot(), set_main_state(), transmit_frame(), and wait_for_txprep().