mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-26 12:27:45 +08:00
turn off motor drive when core is halted
This commit is contained in:
+1
-1
@@ -47,7 +47,7 @@
|
||||
#include "cmsis_os.h"
|
||||
|
||||
/* USER CODE BEGIN Includes */
|
||||
#include "MotorControl/test.h"
|
||||
#include "test.h"
|
||||
/* USER CODE END Includes */
|
||||
|
||||
/* Variables -----------------------------------------------------------------*/
|
||||
|
||||
@@ -81,6 +81,10 @@ int main(void)
|
||||
|
||||
/* USER CODE BEGIN 1 */
|
||||
|
||||
//Ensure that debug halting of the core doesn't leave the motor PWM running
|
||||
__HAL_DBGMCU_FREEZE_TIM1();
|
||||
__HAL_DBGMCU_FREEZE_TIM8();
|
||||
|
||||
/* USER CODE END 1 */
|
||||
|
||||
/* MCU Configuration----------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user