We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 201cb29 commit 2bcf956Copy full SHA for 2bcf956
iwdg_sample.c
@@ -19,7 +19,7 @@
19
#include <rtthread.h>
20
#include <rtdevice.h>
21
22
-#define IWDG_DEVICE_NAME "iwg" /* 看门狗设备名称 */
+#define IWDG_DEVICE_NAME "wdt" /* 看门狗设备名称 */
23
24
static rt_device_t wdg_dev; /* 看门狗设备句柄 */
25
@@ -33,7 +33,7 @@ static void idle_hook(void)
33
static int iwdg_sample(int argc, char *argv[])
34
{
35
rt_err_t ret = RT_EOK;
36
- rt_uint32_t timeout = 1000; /* 溢出时间 */
+ rt_uint32_t timeout = 10; /* 溢出时间 10 秒 */
37
char device_name[RT_NAME_MAX];
38
39
/* 判断命令行参数是否给定了设备名称 */
0 commit comments