Skip to content

Commit a16a711

Browse files
authored
Merge pull request #29 from balanceTWK/revert-28-master_wdt
Revert "[update] iwdg_sample.c"
2 parents 32d14e6 + 531eb2e commit a16a711

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

iwdg_sample.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include <rtthread.h>
2020
#include <rtdevice.h>
2121

22-
#define IWDG_DEVICE_NAME "wdt" /* 看门狗设备名称 */
22+
#define IWDG_DEVICE_NAME "iwg" /* 看门狗设备名称 */
2323

2424
static rt_device_t wdg_dev; /* 看门狗设备句柄 */
2525

@@ -33,7 +33,7 @@ static void idle_hook(void)
3333
static int iwdg_sample(int argc, char *argv[])
3434
{
3535
rt_err_t ret = RT_EOK;
36-
rt_uint32_t timeout = 10; /* 溢出时间 10 秒 */
36+
rt_uint32_t timeout = 1000; /* 溢出时间 */
3737
char device_name[RT_NAME_MAX];
3838

3939
/* 判断命令行参数是否给定了设备名称 */

0 commit comments

Comments
 (0)