AVR XMEGA TC Driver Example 2.
Copyright (c) 2010-2018 Microchip Technology Inc. and its subsidiaries.
#include <conf_example.h>
#include <string.h>
#include <asf.h>
Functions | |
static void | example_overflow_interrupt_callback (void) |
Timer Counter Overflow interrupt callback function. More... | |
int | main (void) |
|
static |
Timer Counter Overflow interrupt callback function.
This function is called when an overflow interrupt has occurred (50ms) on TIMER_PORT_LED and change PWM duty single generation on TIMER_PORT_LED CCA.
References TC_CCA, tc_read_cc(), and tc_write_cc().
Referenced by main().
int main | ( | void | ) |
References board_init(), cpu_irq_enable, example_overflow_interrupt_callback(), pmic_init(), sleepmgr_enter_sleep(), sleepmgr_init(), sysclk_init(), TC_CCA, TC_CCAEN, tc_enable(), tc_enable_cc_channels(), TC_INT_LVL_LO, tc_set_overflow_interrupt_callback(), tc_set_overflow_interrupt_level(), tc_set_resolution(), tc_set_wgm(), TC_WG_NORMAL, TC_WG_SS, tc_write_cc(), and tc_write_period().