/** ****************************************************************************** * File Name : WWDG.c * Description : This file provides code for the configuration * of the WWDG instances. ****************************************************************************** * @attention * *

© Copyright (c) 2020 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under Ultimate Liberty license * SLA0044, the "License"; You may not use this file except in compliance with * the License. You may obtain a copy of the License at: * www.st.com/SLA0044 * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "wwdg.h" /* USER CODE BEGIN 0 */ /* USER CODE END 0 */ WWDG_HandleTypeDef hwwdg; /* WWDG init function */ void MX_WWDG_Init(void) { hwwdg.Instance = WWDG; hwwdg.Init.Prescaler = WWDG_PRESCALER_1; hwwdg.Init.Window = 64; hwwdg.Init.Counter = 64; hwwdg.Init.EWIMode = WWDG_EWI_DISABLE; if (HAL_WWDG_Init(&hwwdg) != HAL_OK) { Error_Handler(); } } void HAL_WWDG_MspInit(WWDG_HandleTypeDef* wwdgHandle) { if(wwdgHandle->Instance==WWDG) { /* USER CODE BEGIN WWDG_MspInit 0 */ /* USER CODE END WWDG_MspInit 0 */ /* WWDG clock enable */ __HAL_RCC_WWDG_CLK_ENABLE(); /* WWDG interrupt Init */ HAL_NVIC_SetPriority(WWDG_IRQn, 5, 0); HAL_NVIC_EnableIRQ(WWDG_IRQn); /* USER CODE BEGIN WWDG_MspInit 1 */ /* USER CODE END WWDG_MspInit 1 */ } } /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/