提交 77fd04b9 编写于 作者: S SummerGift

[bsp][stm32] update wdt driver

上级 b5fb04fd
......@@ -48,7 +48,7 @@ static rt_err_t wdt_control(rt_watchdog_t *wdt, int cmd, void *arg)
break;
/* set watchdog timeout */
case RT_DEVICE_CTRL_WDT_SET_TIMEOUT:
hiwdg.Init.Reload = (rt_uint32_t)arg;
hiwdg.Init.Reload = *((rt_uint32_t*)arg);
if (HAL_IWDG_Init(&hiwdg) != HAL_OK)
{
LOG_E("wdg set timeout failed.");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册