学习分享:
3.定时器工作使能/** * @Brief Enables or disables the specified TIM peripheral. * @param TIMx: where x can be 1 to 14 to select the TIMx peripheral. * @param NewState: new state of the TIMx peripheral. * This parameter can be: ENABLE or DISABLE. * @retval None */ void TIM_Cmd(TIM_TypeDef* TIMx, FunctionalState NewStatSTM32F405xx/07xx 和 STM32F415xx/17xx 的定时器时钟频率由硬件自动设置。分为两种情况: 如果 APB 预分频器为 1,定时器时钟频率等于 APB 域(APB1和APB2)的频率。 否则,等于 APB 域(APB1和APB2)的频率的两倍 (×2)。
3.定时器工作使能/** * @Brief Enables or disables the specified TIM peripheral. * @param TIMx: where x can be 1 to 14 to select the TIMx peripheral. * @param NewState: new state of the TIMx peripheral. * This parameter can be: ENABLE or DISABLE. * @retval None */ void TIM_Cmd(TIM_TypeDef* TIMx, FunctionalState NewStatSTM32F405xx/07xx 和 STM32F415xx/17xx 的定时器时钟频率由硬件自动设置。分为两种情况: 如果 APB 预分频器为 1,定时器时钟频率等于 APB 域(APB1和APB2)的频率。 否则,等于 APB 域(APB1和APB2)的频率的两倍 (×2)。
