File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/drivers/hardware_specific/stm32 Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -713,15 +713,15 @@ void* _configure8PWM(long pwm_frequency, float dead_zone)
713
713
htim1.Instance = TIM1;
714
714
htim1.Init .Prescaler = 0 ;
715
715
htim1.Init .CounterMode = TIM_COUNTERMODE_UP;
716
- htim1.Init .Period = 255 ;
716
+ htim1.Init .Period = 65536 ;
717
717
htim1.Init .ClockDivision = TIM_CLOCKDIVISION_DIV1;
718
718
htim1.Init .RepetitionCounter = 0 ;
719
719
HAL_TIM_PWM_Init (&htim1);
720
720
721
721
htim8.Instance = TIM8;
722
722
htim8.Init .Prescaler = 0 ;
723
723
htim8.Init .CounterMode = TIM_COUNTERMODE_UP;
724
- htim8.Init .Period = 255 ;
724
+ htim8.Init .Period = 65536 ;
725
725
htim8.Init .ClockDivision = TIM_CLOCKDIVISION_DIV1;
726
726
htim8.Init .RepetitionCounter = 0 ;
727
727
HAL_TIM_PWM_Init (&htim8);
You can’t perform that action at this time.
0 commit comments