[bsp][gd32]:gd32vw553h-eval add wdt support#11181
[bsp][gd32]:gd32vw553h-eval add wdt support#11181ZhangYiXiSucceed wants to merge 2 commits intoRT-Thread:masterfrom
Conversation
|
👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread! 为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。 🛠 操作步骤 | Steps
完成后,提交将自动更新至 如有问题欢迎联系我们,再次感谢您的贡献!💐 |
|
请为wdt驱动添加ci-attach 参考:https://club.rt-thread.org/ask/article/5edd0f0940a57129.html |
There was a problem hiding this comment.
Pull request overview
This PR aims to add Watchdog Timer (WDT) support for the GD32VW553H-EVAL BSP by introducing a new WDT driver, wiring it into the GD32 RISC-V driver build, and exposing WDT-related Kconfig options for the board.
Changes:
- Add a new GD32 RISC-V watchdog driver (
drv_wdt.c) implementing RT-Thread watchdog device ops. - Update
SConscriptto compile the WDT driver whenRT_USING_WDT+SOC_GD32VW553Hare enabled. - Extend board Kconfig to expose WDT options (and also UART3/UART4 options).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 11 comments.
| File | Description |
|---|---|
| bsp/gd32/risc-v/libraries/gd32_drivers/drv_wdt.c | New watchdog driver implementation plus shell test commands |
| bsp/gd32/risc-v/libraries/gd32_drivers/SConscript | Adds conditional compilation of drv_wdt.c for GD32VW553H |
| bsp/gd32/risc-v/gd32vw553h-eval/board/Kconfig | Adds board-level WDT configs (and UART3/4 related configs) |
|
@ZhangYiXiSucceed 还请根据 ai 的一些建议修正下 pr 存在的问题,谢谢 |
拉取/合并请求描述:(PR description)
[
为什么提交这份PR (why to submit this PR)
add wdt support for gd32vw553h

你的解决方案是什么 (what is your solution)
请提供验证的bsp和config (provide the config and bsp)
]
当前拉取/合并请求的状态 Intent for your PR
必须选择一项 Choose one (Mandatory):
代码质量 Code Quality:
我在这个拉取/合并请求中已经考虑了 As part of this pull request, I've considered the following:
#if 0代码,不包含已经被注释了的代码 All redundant code is removed and cleaned up