turn off motor drive when core is halted

This commit is contained in:
Oskar Weigl
2016-11-13 03:49:18 +09:00
parent 261c9384bf
commit 23239be9bc
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -47,7 +47,7 @@
#include "cmsis_os.h"
/* USER CODE BEGIN Includes */
#include "MotorControl/test.h"
#include "test.h"
/* USER CODE END Includes */
/* Variables -----------------------------------------------------------------*/
+4
View File
@@ -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----------------------------------------------------------*/