libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
Macros | |
#define | HAS_DEAD_TIME_INSERTION(timer) (timer == TIMER0) |
Functions | |
void | timer_start (uint32_t timer) |
Start timer. More... | |
void | timer_stop (uint32_t timer) |
Stop timer. More... | |
void | timer_set_clock_prescaler (uint32_t timer, uint32_t presc) |
Clock division factor. More... | |
void | timer_set_top (uint32_t timer, uint32_t top) |
Start timer top value the timer reload after it reaches top value. More... | |
#define HAS_DEAD_TIME_INSERTION | ( | timer | ) | (timer == TIMER0) |
Definition at line 27 of file timer_common.c.
void timer_set_clock_prescaler | ( | uint32_t | timer, |
uint32_t | presc | ||
) |
Clock division factor.
[in] | timer | Timer (use TIMERx) |
[in] | presc | Factor (use TIMER_CTRL_PRESC_DIV*) |
Definition at line 52 of file timer_common.c.
References TIMER_CTRL, and TIMER_CTRL_PRESC.
void timer_set_top | ( | uint32_t | timer, |
uint32_t | top | ||
) |
Start timer top value the timer reload after it reaches top value.
[in] | timer | Timer (use TIMERx) |
[in] | top | Top value |
Definition at line 64 of file timer_common.c.
References TIMER_TOP.
void timer_start | ( | uint32_t | timer | ) |
Start timer.
[in] | timer | Timer (use TIMERx) |
Definition at line 33 of file timer_common.c.
References TIMER_CMD, and TIMER_CMD_START.
void timer_stop | ( | uint32_t | timer | ) |
Stop timer.
[in] | timer | Timer (use TIMERx) |
Definition at line 42 of file timer_common.c.
References TIMER_CMD, and TIMER_CMD_STOP.