libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
timer_common_f24.h File Reference
Include dependency graph for timer_common_f24.h:
This graph shows which files directly or indirectly include this file:

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...
 

Macro Definition Documentation

◆ TIM2_OR

#define TIM2_OR   TIM_OR(TIM2)

Definition at line 40 of file timer_common_f24.h.

◆ TIM2_OR_ITR1_RMP_MASK

#define TIM2_OR_ITR1_RMP_MASK   (0x3 << 10)

Definition at line 63 of file timer_common_f24.h.

◆ TIM5_OR

#define TIM5_OR   TIM_OR(TIM5)

Definition at line 41 of file timer_common_f24.h.

◆ TIM5_OR_TI4_RMP_MASK

#define TIM5_OR_TI4_RMP_MASK   (0x3 << 6)

Definition at line 84 of file timer_common_f24.h.

◆ TIM_OR

#define TIM_OR (   tim_base)    MMIO32((tim_base) + 0x50)

Definition at line 39 of file timer_common_f24.h.

Enumeration Type Documentation

◆ tim_ic_pol

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.