timer_cm3.h File Reference

Low-level timer driver (SysTick) for Cortex-M3. More...

#include "cfg/cfg_timer.h"
#include <cpu/detect.h>
#include <cpu/irq.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 TIMER_ON_GPTM   1
 Default system timer.
#define TIMER_DEFAULT   TIMER_ON_GPTM
 Default system timer.
#define TIMER_TICKS_PER_SEC   1000
 Default system timer.
#define TIMER_HW_HPTICKS_PER_SEC   (CPU_FREQ)
 Default system timer.
#define TIMER_HW_CNT   (CPU_FREQ / TIMER_TICKS_PER_SEC)
 Default system timer.
#define SIZEOF_HPTIME_T   4
 Default system timer.
#define DEFINE_TIMER_ISR   DECLARE_ISR_CONTEXT_SWITCH(timer_handler)
 Default system timer.
typedef uint32_t hptime_t
 Type of time expressed in ticks of the hardware high-precision timer.
 ISR_PROTO_CONTEXT_SWITCH (timer_handler)
 Default system timer.
void timer_hw_irq (void)
 Default system timer.
bool timer_hw_triggered (void)
 Default system timer.
hptime_t timer_hw_hpread (void)
 Default system timer.
void timer_hw_init (void)
 HW dependent timer initialization.
void timer_hw_exit (void)
 Default system timer.

Detailed Description

Low-level timer driver (SysTick) for Cortex-M3.

Author:
Andrea Righi <arighi@develer.com>

Definition in file timer_cm3.h.