ADP service example TC functions.
Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.
Functions | |
void | adp_example_tc_init (void) |
Variables | |
volatile bool | time_out |
void adp_example_tc_init | ( | void | ) |
Configure TC for a 10Hz frequency and trigger on RC compare.
References pmc_disable_pck(), pmc_enable_pck(), pmc_enable_periph_clk(), PMC_PCK_PRES_CLK_1, pmc_switch_pck_to_sclk(), sysclk_get_cpu_hz(), tc_enable_interrupt(), tc_find_mck_divisor(), tc_init(), tc_start(), and tc_write_rc().
Referenced by adp_example_init().
volatile bool time_out |
Referenced by main(), and TC0_Handler().