STM32F767 watchdog example
I wonder if someone can provide me with an example how to use the watchdog in a STM32F767.
I have tried the following code but it don't get a reset!
static WWDG_HandleTypeDef hwwdg;
static bool wwdg_inited = false;
static void EnableWDG (void)
{
if ( ! wwdg_inited )
{
hwwdg.Instance = WWDG;
hwwdg.Init.Prescaler = WWDG_PRESCALER_8;
hwwdg.Init.Window = 64;
hwwdg.Init.Counter = 100;
hwwdg.Init.EWIMode = WWDG_EWI_DISABLE;
if (HAL_WWDG_Init(&hwwdg) == HAL_OK)
{
if (HAL_WWDG_Refresh(&hwwdg) == HAL_OK)
wwdg_inited = true;
}
}
}
It seems that the the API has been changed. The HAL_WWDG_Start() no longer exists...
