flyingcys/rt-thread

duo : wdt : RT_DEVICE_CTRL_WDT_SET_TIMEOUT 的单位问题

unicornx opened this issue · 1 comments

参考 components/drivers/include/drivers/watchdog.h

#define RT_DEVICE_CTRL_WDT_GET_TIMEOUT    (RT_DEVICE_CTRL_BASE(WDT) + 1) /* get timeout(in seconds) */
#define RT_DEVICE_CTRL_WDT_SET_TIMEOUT    (RT_DEVICE_CTRL_BASE(WDT) + 2) /* set timeout(in seconds) */

RT_DEVICE_CTRL_WDT_SET_TIMEOUT 的单位是 s,但目前实现做成了 ms