AVR XMEGA timer/counter Timer. More...
#include <timer/tc_timer_xmega.h>#include <assert.h>#include <interrupt.h>#include <intc.h>#include <regs/xmega_tc.h>#include <chip/tc.h>#include <pmic.h>Go to the source code of this file.
Functions | |
| static void | tc_timer_irq_handler (void *int_data) |
| TC compare interrupt handler. | |
| void | tc_timer_init (uint8_t tc_id, void *regs, struct timer *timer, timer_callback_t callback) |
| Common initialization for timers. | |
| timer_res_t | tc_timer_set_resolution (uint8_t tc_id, uint32_t resolution) |
| Get best TC clock selection for specified resolution. | |
| uint32_t | tc_timer_get_resolution (uint8_t tc_id, timer_res_t timer_res) |
| Get resolution in Hz for TC clock selection. | |
| void | tc_timer_write_resolution (uint8_t tc_id, struct timer *timer, timer_res_t timer_res) |
| Update clock selection for TC. | |
| void | tc_timer_start (uint8_t tc_id, struct timer *timer) |
| Enable, reset and start TC. | |
| void | tc_timer_set_alarm (uint8_t tc_id, struct timer *timer, uint16_t delay) |
| Configure new alarm on TC. | |
| void | tc_timer_stop (uint8_t tc_id, struct timer *timer) |
| Stop and disable TC. | |
| uint16_t | tc_timer_get_time (uint8_t tc_id, struct timer *timer) |
| Get current time of TC. | |
AVR XMEGA timer/counter Timer.
This file contains the function definitions for the AVR XMEGA timer/counter implementation of the Timer driver.
Copyright (C) 2010 Atmel Corporation. All rights reserved.
Definition in file tc_timer_xmega.c.
1.6.3