libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
#include <libopencm3/stm32/common/timer_common_all.h>
Go to the source code of this file.
Macros | |
#define | TIM_OR(tim_base) MMIO32((tim_base) + 0x50) |
#define | TIM2_OR TIM_OR(TIM2) |
#define | TIM5_OR TIM_OR(TIM5) |
#define | TIM2_OR_ITR1_RMP_TIM8_TRGOU (0x0 << 10) |
Internal Trigger 1 remapped to timer 8 trigger out. More... | |
#define | TIM2_OR_ITR1_RMP_PTP (0x1 << 10) |
Internal Trigger 1 remapped to PTP trigger out. More... | |
#define | TIM2_OR_ITR1_RMP_OTG_FS_SOF (0x2 << 10) |
Internal Trigger 1 remapped to USB OTG FS SOF. More... | |
#define | TIM2_OR_ITR1_RMP_OTG_HS_SOF (0x3 << 10) |
Internal Trigger 1 remapped to USB OTG HS SOF. More... | |
#define | TIM2_OR_ITR1_RMP_MASK (0x3 << 10) |
#define | TIM5_OR_TI4_RMP_GPIO (0x0 << 6) |
Internal Trigger 4 remapped to GPIO (see reference manual) More... | |
#define | TIM5_OR_TI4_RMP_LSI (0x1 << 6) |
Internal Trigger 4 remapped to LSI internal clock. More... | |
#define | TIM5_OR_TI4_RMP_LSE (0x2 << 6) |
Internal Trigger 4 remapped to LSE internal clock. More... | |
#define | TIM5_OR_TI4_RMP_RTC (0x3 << 6) |
Internal Trigger 4 remapped to RTC output event. More... | |
#define | TIM5_OR_TI4_RMP_MASK (0x3 << 6) |
Enumerations | |
enum | tim_ic_pol { TIM_IC_RISING , TIM_IC_FALLING , TIM_IC_BOTH } |
Input Capture input polarity. More... | |
Functions | |
void | timer_set_option (uint32_t timer_peripheral, uint32_t option) |
Set Timer Option. More... | |
void | timer_ic_set_polarity (uint32_t timer, enum tim_ic_id ic, enum tim_ic_pol pol) |
Set Input Polarity. More... | |
Definition at line 40 of file timer_common_f24.h.
#define TIM2_OR_ITR1_RMP_MASK (0x3 << 10) |
Definition at line 63 of file timer_common_f24.h.
Definition at line 41 of file timer_common_f24.h.
#define TIM5_OR_TI4_RMP_MASK (0x3 << 6) |
Definition at line 84 of file timer_common_f24.h.
#define TIM_OR | ( | tim_base | ) | MMIO32((tim_base) + 0x50) |
Definition at line 39 of file timer_common_f24.h.
enum tim_ic_pol |
Input Capture input polarity.
Enumerator | |
---|---|
TIM_IC_RISING | |
TIM_IC_FALLING | |
TIM_IC_BOTH |
Definition at line 87 of file timer_common_f24.h.