aboutsummaryrefslogtreecommitdiff
path: root/stm-init.c
diff options
context:
space:
mode:
Diffstat (limited to 'stm-init.c')
-rw-r--r--stm-init.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/stm-init.c b/stm-init.c
index d36bdff..c06554b 100644
--- a/stm-init.c
+++ b/stm-init.c
@@ -115,10 +115,6 @@ static void MX_GPIO_Init(void)
}
#endif
-#ifdef CMSIS_RTOS
-#include "cmsis_os.h"
-#endif
-
/**
* @brief This function is executed in case of error occurrence.
* @param None
@@ -129,10 +125,6 @@ void Error_Handler(void)
#ifdef HAL_GPIO_MODULE_ENABLED
HAL_GPIO_WritePin(LED_PORT, LED_RED, GPIO_PIN_SET);
#endif
-#ifdef CMSIS_RTOS
- //osThreadSetPriority(osThreadGetId(), osPriorityIdle);
- osThreadTerminate(osThreadGetId());
-#endif
while (1) { ; }
}