rt-thread icon indicating copy to clipboard operation
rt-thread copied to clipboard

duo : wdt : RT_DEVICE_CTRL_WDT_SET_TIMEOUT 的单位问题

Open unicornx opened this issue 1 year ago • 0 comments

bsp/cvitek/cv18xx_risc-v/ master

参考 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 avatar May 10 '24 23:05 unicornx