disable watchdog

This commit is contained in:
2021-02-27 23:05:44 +01:00
parent 7a60bb9c97
commit 70de623e5f

View File

@ -1,4 +1,4 @@
// Processed by ../tools/insertMyCode.sh // Processed by ../tools/insertMyCode.sh
/* USER CODE BEGIN Header */ /* USER CODE BEGIN Header */
/** /**
****************************************************************************** ******************************************************************************
@ -27,8 +27,8 @@
#include "gpio.h" #include "gpio.h"
/* Private includes ----------------------------------------------------------*/ /* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */ /* USER CODE BEGIN Includes */
#include "main2.h" #include "main2.h"
/* USER CODE END Includes */ /* USER CODE END Includes */
@ -70,8 +70,8 @@ void SystemClock_Config(void);
*/ */
int main(void) int main(void)
{ {
/* USER CODE BEGIN 1 */ /* USER CODE BEGIN 1 */
my_setup_1(); my_setup_1();
/* USER CODE END 1 */ /* USER CODE END 1 */
@ -98,9 +98,9 @@ int main(void)
MX_SPI2_Init(); MX_SPI2_Init();
MX_TIM1_Init(); MX_TIM1_Init();
MX_USART1_UART_Init(); MX_USART1_UART_Init();
MX_IWDG_Init(); // MX_IWDG_Init();
/* USER CODE BEGIN 2 */ /* USER CODE BEGIN 2 */
my_setup_2(); my_setup_2();
/* USER CODE END 2 */ /* USER CODE END 2 */
@ -111,8 +111,8 @@ int main(void)
{ {
/* USER CODE END WHILE */ /* USER CODE END WHILE */
/* USER CODE BEGIN 3 */ /* USER CODE BEGIN 3 */
my_loop(); my_loop();
} }
/* USER CODE END 3 */ /* USER CODE END 3 */
@ -167,13 +167,13 @@ void SystemClock_Config(void)
*/ */
void Error_Handler(void) void Error_Handler(void)
{ {
/* USER CODE BEGIN Error_Handler_Debug */ /* USER CODE BEGIN Error_Handler_Debug */
my_errorHandler(); my_errorHandler();
/* User can add his own implementation to report the HAL error return state */ /* User can add his own implementation to report the HAL error return state */
/* USER CODE END Error_Handler_Debug */ /* USER CODE END Error_Handler_Debug */
while(1) { }; while(1) { };
} }