/* USER CODE BEGIN WHILE */ while (1) { /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ HAL_Delay(750); if(!HAL_GPIO_ReadPin(GPIOH,GPIO_PIN_2)) HAL_IWDG_Refresh(&hiwdg1); HAL_Delay(750); HAL_GPIO_TogglePin(GPIOB,GPIO_PIN_0); if(!HAL_GPIO_ReadPin(GPIOH,GPIO_PIN_2)) HAL_IWDG_Refresh(&hiwdg1); } /* USER CODE END 3 */ 若没有及时喂狗将会被rst
/* USER CODE BEGIN WHILE */ while (1) { /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ HAL_Delay(750); if(!HAL_GPIO_ReadPin(GPIOH,GPIO_PIN_2)) HAL_IWDG_Refresh(&hiwdg1); HAL_Delay(750); HAL_GPIO_TogglePin(GPIOB,GPIO_PIN_0); if(!HAL_GPIO_ReadPin(GPIOH,GPIO_PIN_2)) HAL_IWDG_Refresh(&hiwdg1); } /* USER CODE END 3 */ 若没有及时喂狗将会被rst