119 if (compare_num > 3) {
123 TIMER_CC(timer, compare_num) = compare_val;
144 return TIMER_CC(timer, compare_num);
#define PERIPH_TRIGGER_TASK(task)
#define TIMER_PRESCALER_MASK
#define TIMER_TASK_CLEAR(T)
#define TIMER_PRESCALER(T)
#define TIMER_TASK_START(T)
#define TIMER_TASK_CAPTURE(T, C)
#define TIMER_TASK_STOP(T)
uint32_t timer_get_ticks(uint32_t timer)
Get timer ticks.
void timer_set_mode(uint32_t timer, enum timer_mode mode)
Set timer mode (counter/timer)
void timer_set_bitmode(uint32_t timer, enum timer_bitmode bitmode)
Set timer bit mode (width)
uint32_t timer_get_freq(uint32_t timer)
Get the timer tick frequency.
void timer_set_prescaler(uint32_t timer, uint8_t presc)
Set prescaler value.
void timer_clear(uint32_t timer)
Clear the timer.
void timer_set_compare(uint32_t timer, uint8_t compare_num, uint32_t compare_val)
Set compare register.
uint32_t timer_get_cc(uint32_t timer, uint8_t compare_num)
Get compare register.
void timer_start(uint32_t timer)
Start the timer.
void timer_stop(uint32_t timer)
Stop the timer.