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