ADP service example TC functions for SAM0.
Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.
Functions | |
static void | adp_example_tc_callback (struct tc_module *const module_inst) |
static void | adp_example_tc_configure (void) |
static void | adp_example_tc_configure_callback (void) |
void | adp_example_tc_init (void) |
Variables | |
struct tc_module | tc_instance |
volatile bool | time_out = true |
|
static |
References time_out.
Referenced by adp_example_tc_configure_callback().
|
static |
References tc_config::clock_prescaler, tc_config::clock_source, tc_config::counter_8_bit, tc_config::counter_size, GCLK_GENERATOR_1, tc_8bit_config::period, TC_CLOCK_PRESCALER_DIV16, TC_COUNTER_SIZE_8BIT, tc_enable(), tc_get_config_defaults(), tc_init(), tc_instance, and tc_8bit_config::value.
Referenced by adp_example_tc_init().
|
static |
References adp_example_tc_callback(), TC_CALLBACK_OVERFLOW, tc_enable_callback(), tc_instance, and tc_register_callback().
Referenced by adp_example_tc_init().
void adp_example_tc_init | ( | void | ) |
References adp_example_tc_configure(), and adp_example_tc_configure_callback().
Referenced by adp_example_init().
struct tc_module tc_instance |
Referenced by adp_example_tc_callback(), and main().