AVR XMEGA TC Driver Example 4.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Functions | |
void | cca_callback (void) |
Callback function for TC_CCA interrupt. More... | |
int | main (void) |
Main application routine. More... | |
void cca_callback | ( | void | ) |
Callback function for TC_CCA interrupt.
This function reads the result from tc frequency capture and displays the lower 8 bits of the result on leds.
References EXAMPLE_TC, LEDPORT, TC_CCA, and tc_read_cc().
Referenced by main().
int main | ( | void | ) |
Main application routine.
References cca_callback(), cpu_irq_enable, EVSYS_CHMUX_EXAMPLEPORT_PIN0_gc, EXAMPLE_TC, GPIO_PUSH_BUTTON_0, ioport_configure_port_pin(), ioport_pin_to_mask(), ioport_pin_to_port(), LEDPORT, pmic_enable_level(), pmic_init(), sysclk_enable_module(), SYSCLK_EVSYS, SYSCLK_PORT_GEN, TC_CCA, tc_clear_cc_interrupt(), tc_enable(), tc_enable_cc_channels(), tc_set_cca_interrupt_callback(), tc_set_cca_interrupt_level(), tc_set_input_capture(), tc_set_resolution(), tc_write_period(), TIMER_EXAMPLE_PERIOD, and TIMER_EXAMPLE_RESOLUTION.