void TIM_SetClockDivision(TIM_TypeDef* TIMx, uint16_t TIM_CKD)
TIMx | 説明 |
TIM1 | タイマ1 |
TIM2 | タイマ2 |
TIM3 | タイマ3 |
TIM4 | タイマ4 |
TIM5 | タイマ5 |
TIM8 | タイマ8 |
TIM_CKD | 説明 |
TIM_CKD_DIV1 | TDTS = Tck_tim |
TIM_CKD_DIV2 | TDTS = 2 × Tck_tim |
TIM_CKD_DIV4 | TDTS = 4 × Tck_tim |
/* Sets the TIM1 CKD value */ TIM_SetClockDivision(TIM1, TIM_CKD_DIV4);