Skip to content

Commit

Permalink
Fixes stm assert
Browse files Browse the repository at this point in the history
  • Loading branch information
dzid26 committed Dec 1, 2023
1 parent d6ea388 commit a25ebd9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions firmware/src/BSP/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ static void A4950_init(void)
tim_OCInitStructure.TIM_OutputNState = TIM_OutputState_Disable;
tim_OCInitStructure.TIM_OCPolarity = TIM_OCPolarity_High;
tim_OCInitStructure.TIM_OCIdleState = TIM_OCIdleState_Reset; //Motor coasting when idle is set to reset
tim_OCInitStructure.TIM_OCNIdleState = TIM_OCNIdleState_Reset;
tim_OCInitStructure.TIM_Pulse = 0;

TIM_OC1Init(PWM_TIM, &tim_OCInitStructure); //CH1
Expand Down

0 comments on commit a25ebd9

Please sign in to comment.