flyingcys / rt-thread

RT-Thread is an open source IoT operating system.
http://www.rt-thread.io
Apache License 2.0
0 stars 1 forks source link

duo : wdt : RT_DEVICE_CTRL_WDT_SET_TIMEOUT 的单位问题 #4

Closed unicornx closed 4 months ago

unicornx commented 4 months ago

参考 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

unicornx commented 4 months ago

moved to https://github.com/RT-Thread/rt-thread/issues/8932