timer_lpc2.h File Reference
Low-level timer module for NXP LPC2xxx (interface). More...
#include <hw/hw_cpufreq.h>#include "cfg/cfg_timer.h"#include <cfg/compiler.h>#include <cfg/macros.h>#include <io/lpc23xx.h>Go to the source code of this file.
Values for CONFIG_TIMER. | |
Select which hardware timer interrupt to use for system clock and softtimers. | |
| #define | TIMER0_COMPARE0 0 |
| System timer on Timer0 Compare match0. | |
| #define | TIMER_DEFAULT TIMER0_COMPARE0 |
| Default system timer. | |
| #define | DEFINE_TIMER_ISR DECLARE_ISR_CONTEXT_SWITCH(timer_handler) |
| System timer on Timer0 Compare match0. | |
| #define | TIMER_TICKS_PER_SEC 1000 |
| System timer on Timer0 Compare match0. | |
| #define | TIMER_HW_CNT (CPU_FREQ / TIMER_TICKS_PER_SEC - 1) |
| System timer on Timer0 Compare match0. | |
| #define | TIMER_HW_HPTICKS_PER_SEC (CPU_FREQ) |
| Frequency of the hardware high-precision timer. | |
| #define | SIZEOF_HPTIME_T 4 |
| System timer on Timer0 Compare match0. | |
| typedef uint32_t | hptime_t |
| Type of time expressed in ticks of the hardware high-precision timer. | |
| ISR_PROTO_CONTEXT_SWITCH (timer_handler) | |
| System timer on Timer0 Compare match0. | |
| void | timer_hw_irq (void) |
| System timer on Timer0 Compare match0. | |
| bool | timer_hw_triggered (void) |
| System timer on Timer0 Compare match0. | |
| hptime_t | timer_hw_hpread (void) |
| System timer on Timer0 Compare match0. | |
| void | timer_hw_init (void) |
| HW dependent timer initialization. | |
Detailed Description
Low-level timer module for NXP LPC2xxx (interface).
Definition in file timer_lpc2.h.
Define Documentation
| #define TIMER_HW_HPTICKS_PER_SEC (CPU_FREQ) |
Frequency of the hardware high-precision timer.
Definition at line 71 of file timer_lpc2.h.
