Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duo : wdt : cvi_wdt_top_setting 疑问 #3

Closed
unicornx opened this issue May 10, 2024 · 1 comment
Closed

duo : wdt : cvi_wdt_top_setting 疑问 #3

unicornx opened this issue May 10, 2024 · 1 comment

Comments

@unicornx
Copy link
Collaborator

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 unicornx changed the title duo:wdt: cvi_wdt_top_setting 疑问 duo : wdt : cvi_wdt_top_setting 疑问 May 10, 2024
@unicornx
Copy link
Collaborator Author

moved to RT-Thread#8931

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant