提交 262d4268 编写于 作者: X XXXXzzzz000

[bsp][stm32f4xx-HAL] fix iwg driver.

上级 1699a12b
......@@ -32,7 +32,7 @@ static rt_err_t drv_control(rt_watchdog_t *wdt, int cmd, void *arg)
switch (cmd)
{
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)
{
return RT_ERROR;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册