timer_xmega.h File Reference
Low-level timer module for AVR XMEGA (interface). More...
#include <hw/hw_cpufreq.h>#include "cfg/cfg_timer.h"#include <cfg/compiler.h>#include <cfg/macros.h>#include <avr/io.h>#include <avr/interrupt.h>Go to the source code of this file.
Defines | |
| #define | TIMER_DEFAULT TIMER_USE_TCC1 |
| Default system timer. | |
| #define | TIMER_HW_HPTICKS_PER_SEC DIV_ROUND(CPU_FREQ, TIMER_PRESCALER) |
| Frequency of the hardware high precision timer. | |
Functions | |
| void | timer_hw_init (void) |
| HW dependent timer initialization. | |
Detailed Description
Low-level timer module for AVR XMEGA (interface).
This file is heavily inspired by the AVR implementation for BeRTOS, but uses a different approach for implementing the different debug ports, by using the timer structs.
Definition in file timer_xmega.h.
Define Documentation
| #define TIMER_HW_HPTICKS_PER_SEC DIV_ROUND(CPU_FREQ, TIMER_PRESCALER) |
Frequency of the hardware high precision timer.
Definition at line 115 of file timer_xmega.h.
