From 8341b585299867cf074e4bc680240045de315983 Mon Sep 17 00:00:00 2001 From: "stella.xia" <10375221+stella_xia@user.noreply.gitee.com> Date: Tue, 28 Feb 2023 14:28:07 +0000 Subject: [PATCH] =?UTF-8?q?update=20rt-thread-version/rt-thread-standard/p?= =?UTF-8?q?rogramming-manual/device/device.md.=20watch=20dog=20=E4=B8=AD?= =?UTF-8?q?=E6=B3=A8=E5=86=8C=E8=AE=BE=E5=A4=87=E5=90=8D=E4=B8=BAwdt?= =?UTF-8?q?=EF=BC=9B=20=E8=B6=85=E6=97=B6=E6=97=B6=E9=97=B4=E9=9C=80?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=9C=A826s=E5=86=85=EF=BC=8C=E5=90=A6?= =?UTF-8?q?=E5=88=99=E6=97=A0=E6=B3=95=E9=80=9A=E8=BF=87wdt=5Fcontrol?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E7=9A=84=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: stella.xia <10375221+stella_xia@user.noreply.gitee.com> --- .../rt-thread-standard/programming-manual/device/device.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rt-thread-version/rt-thread-standard/programming-manual/device/device.md b/rt-thread-version/rt-thread-standard/programming-manual/device/device.md index c79a577..20c9cbd 100644 --- a/rt-thread-version/rt-thread-standard/programming-manual/device/device.md +++ b/rt-thread-version/rt-thread-standard/programming-manual/device/device.md @@ -449,7 +449,7 @@ rt_err_t rt_device_set_tx_complete(rt_device_t dev, rt_err_t (*tx_done)(rt_devic #include #include -#define IWDG_DEVICE_NAME "iwg" +#define IWDG_DEVICE_NAME "wdt" static rt_device_t wdg_dev; @@ -463,7 +463,7 @@ static void idle_hook(void) int main(void) { rt_err_t res = RT_EOK; - rt_uint32_t timeout = 1000; /* 溢出时间 */ + rt_uint32_t timeout = 10; /* 溢出时间 */ /* 根据设备名称查找看门狗设备,获取设备句柄 */ wdg_dev = rt_device_find(IWDG_DEVICE_NAME); -- Gitee