Repository navigation
drivers: serial: add Kconfig help text for RT_USING_SERIAL_V2 - #12088
Conversation
Signed-off-by: liangtian061109 <3071077786@qq.com>
|
👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread! 为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。 🛠 操作步骤 | Steps
完成后,提交将自动更新至 如有问题欢迎联系我们,再次感谢您的贡献!💐 |
📌 Code Review Assignment🏷️ Tag: componentsReviewers: @Maihuanyi Changed Files (Click to expand)
📊 Current Review Status (Last Updated: 2026-11-25 13:22 CST)
📝 Review Instructions
|
拉取/合并请求描述:(PR description)
[
为什么提交这份PR (why to submit this PR)
关联 Issue #10941 。
components/drivers/serial/Kconfig中的RT_USING_SERIAL_V2缺少help配置说明,用户在 menuconfig 中难以了解 Serial V2 框架的行为差异、动态缓冲依赖以及与 V1 的兼容性影响。你的解决方案是什么 (what is your solution)
阅读
dev_serial_v2.c、dev_serial_v2.h、rtdevice.h与components/drivers/serial/SConscript源码,为RT_USING_SERIAL_V2补充四段式help说明:rx_bufsz/tx_bufsz)及溢出策略行为;RT_USING_SERIAL、RT_USING_HEAP及 BSPrt_uart_ops(含transmit回调)的依赖;RT_USING_SERIAL_V1/RT_SERIAL_RB_BUFSZ互斥及旧版 V1 打开标志位不兼容的副作用。请提供验证的bsp和config (provide the config and bsp)
BSP: bsp/qemu-vexpress-a9
.config: CONFIG_RT_USING_SERIAL_V2=y (verified with kconfiglib parsing with 0 warnings)
action: N/A (Kconfig help text update only)
]
当前拉取/合并请求的状态 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