AVR XMEGA TC Driver Example 4.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
#include <conf_example.h>
#include <asf.h>
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 TC_CCA, and tc_read_cc().
Referenced by main().
int main | ( | void | ) |
Main application routine.
References cca_callback(), cpu_irq_enable, ioport_configure_port_pin(), ioport_pin_to_mask(), ioport_pin_to_port(), 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_EVACT_FRQ_gc, tc_set_cca_interrupt_callback(), tc_set_cca_interrupt_level(), tc_set_input_capture(), tc_set_resolution(), and tc_write_period().