Timer CPU specific definitions for the STM32 family. More...
Timer CPU specific definitions for the STM32 family.
Definition in file cpu_timer.h.
#include <stdint.h>
#include "cpu.h"
Go to the source code of this file.
Data Structures | |
struct | timer_conf_t |
Timer device configuration. More... | |
#define | TIMER_CHANNEL_NUMOF (4U) |
All STM timers have at most 4 capture-compare channels. | |
#define | PERIPH_TIMER_PROVIDES_SET |
The driver provides a relative set function. | |
#define | TIM_CHAN(tim, chan) *(&dev(tim)->CCR1 + chan) |
Define a macro for accessing a timer channel. | |
#define PERIPH_TIMER_PROVIDES_SET |
The driver provides a relative set function.
Definition at line 40 of file cpu_timer.h.
#define TIM_CHAN | ( | tim, | |
chan | |||
) | *(&dev(tim)->CCR1 + chan) |
Define a macro for accessing a timer channel.
Definition at line 45 of file cpu_timer.h.
#define TIMER_CHANNEL_NUMOF (4U) |
All STM timers have at most 4 capture-compare channels.
Definition at line 35 of file cpu_timer.h.