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 疑问 #8931

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

duo : wdt : cvi_wdt_top_setting 疑问 #8931

unicornx opened this issue May 10, 2024 · 1 comment

Comments

@unicornx
Copy link
Contributor

unicornx commented May 10, 2024

bsp/cvitek/cv18xx_risc-v/ master

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);
}
@Z8MAN8
Copy link
Contributor

Z8MAN8 commented Jun 1, 2024

image
该设置确保使能wdt的reset

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

2 participants