[gd32][uart] Add GD32VW553 series UART driver support#11147
[gd32][uart] Add GD32VW553 series UART driver support#11147zhang-haitao-repo wants to merge 5 commits intoRT-Thread:masterfrom
Conversation
- Add support for GD32VW55x series UART/USART peripherals - Implement proper GPIO alternate function configuration for GD32VW55x - Add conditional compilation for different GD32 series (GD32VF103V vs GD32VW55x) - Remove unused UART3/UART4 configurations from Kconfig
|
👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread! 为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。 🛠 操作步骤 | Steps
完成后,提交将自动更新至 如有问题欢迎联系我们,再次感谢您的贡献!💐 |
There was a problem hiding this comment.
Pull request overview
This PR adds UART driver support for the GD32VW553 series microcontroller by implementing SOC-specific differentiation between GD32VF103V and GD32VW55x families within the existing GD32 RISC-V BSP framework.
Changes:
- Adds conditional GPIO alternate function configuration support for GD32VW55x UART peripherals
- Implements correct interrupt vector naming (UART1/2 vs USART1/2) for GD32VW55x series
- Removes non-existent UART3/4 configuration options from GD32VW553H Kconfig
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| bsp/gd32/risc-v/libraries/gd32_drivers/drv_usart.h | Adds tx_alt and rx_alt fields to gd32_uart struct for GD32VW55x GPIO alternate function configuration |
| bsp/gd32/risc-v/libraries/gd32_drivers/drv_usart.c | Implements SOC-specific interrupt handlers, UART peripheral definitions, and GPIO initialization with alternate function support for GD32VW55x |
| bsp/gd32/risc-v/gd32vw553h-eval/board/Kconfig | Removes UART3/4 configuration options that don't exist in GD32VW553H hardware |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
| rt_interrupt_leave(); | ||
| } | ||
| #else | ||
| #error "not support soc" |
There was a problem hiding this comment.
已经按照Comment进行修改,麻烦有时间时,帮忙再次Review & Approve一下,谢谢!!!
拉取/合并请求描述:(PR description)
[
为什么提交这份PR (why to submit this PR)
你的解决方案是什么 (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