TIM Mode

group TIM_Mode

Defines

TIM_Mode_FreeRun ((uint16_t)0x0000)

Select the TIM mode as free-running mode. In free-running mode, the TIM counts down from 0xFFFFFFFF.

TIM_Mode_UserDefine ((uint16_t)0x0001)

Select the TIM mode as user-defined mode. In user-defined mode, the TIM counts down from the value set by TIM_Period in TIM_TimeBaseInitTypeDef.

IS_TIM_MODE(mode)                            (((mode) == TIM_Mode_FreeRun

) || \

((mode) ==

TIM_Mode_UserDefine))

Check whether is the TIM mode.