File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
src/drivers/hardware_specific/stm32 Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -733,6 +733,16 @@ void configure8PWM(void)
733
733
sBreakDeadTimeConfig .AutomaticOutput = TIM_AUTOMATICOUTPUT_DISABLE;
734
734
HAL_TIMEx_ConfigBreakDeadTime (&htim1, &sBreakDeadTimeConfig );
735
735
736
+ // Set TIM8 dead time values to 50 ns
737
+ TIM_BreakDeadTimeConfigTypeDef sBreakDeadTimeConfigTIM8 = {0 };
738
+ sBreakDeadTimeConfigTIM8 .OffStateRunMode = TIM_OSSR_DISABLE;
739
+ sBreakDeadTimeConfigTIM8 .OffStateIDLEMode = TIM_OSSI_DISABLE;
740
+ sBreakDeadTimeConfigTIM8 .LockLevel = TIM_LOCKLEVEL_OFF;
741
+ sBreakDeadTimeConfigTIM8 .DeadTime = 50 ;
742
+ sBreakDeadTimeConfigTIM8 .BreakState = TIM_BREAK_DISABLE;
743
+ sBreakDeadTimeConfigTIM8 .BreakPolarity = TIM_BREAKPOLARITY_HIGH;
744
+ sBreakDeadTimeConfigTIM8 .AutomaticOutput = TIM_AUTOMATICOUTPUT_DISABLE;
745
+ HAL_TIMEx_ConfigBreakDeadTime (&htim8, &sBreakDeadTimeConfigTIM8 );
736
746
737
747
738
748
// Configure TIM1 channels 1-6 for PWM output
You can’t perform that action at this time.
0 commit comments