/* Initializes the watch dog, include time setting, mode register.  */
void watchdog_init(uint32_t timeout_ms)
/* Initializes the watch dog, include time setting, mode register.  */
void watchdog_init(uint32_t timeout_ms)
{
	WDG_InitTypeDef WDG_InitStruct;
	u32 CountProcess;
	u32 DivFacProcess;
	WDG_Scalar(timeout_ms, &CountProcess, &DivFacProcess);
	WDG_InitStruct.CountProcess = CountProcess;
	WDG_InitStruct.DivFacProcess = DivFacProcess;
	WDG_Init(&WDG_InitStruct);
}