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 : cvi_wdt_top_setting 疑问 #3

Closed unicornx closed 1 month ago

unicornx commented 1 month ago
rt_inline void cvi_wdt_top_setting()
{
    uint32_t val;

    mmio_write_32(CV_TOP + CV_TOP_WDT_OFFSET, CV_TOP_WDT_VAL); // <------- 这里的设置和手册对不上,感觉是无用的代码

    val = mmio_read_32(CV_RST_REG);
    mmio_write_32(CV_RST_REG, val & ~CV_RST_WDT);
    rt_hw_us_delay(10);
    mmio_write_32(CV_RST_REG, val | CV_RST_WDT);
}
unicornx commented 1 month ago

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