We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d72290 commit dc225f3Copy full SHA for dc225f3
bsp/stm32/libraries/HAL_Drivers/drivers/drv_pwm.c
@@ -374,7 +374,7 @@ static rt_err_t stm32_hw_pwm_init(struct stm32_pwm *device)
374
/* configure the timer to pwm mode */
375
tim->Init.Prescaler = 0;
376
tim->Init.CounterMode = TIM_COUNTERMODE_UP;
377
- tim->Init.Period = 0;
+ tim->Init.Period = 1;
378
tim->Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
379
#if defined(SOC_SERIES_STM32F1) || defined(SOC_SERIES_STM32L4)
380
tim->Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
0 commit comments