[bsp][n32] fix USART2 remap macro#11548
Conversation
|
👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread! 为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。 🛠 操作步骤 | Steps
完成后,提交将自动更新至 如有问题欢迎联系我们,再次感谢您的贡献!💐 |
|
能加个ci验证吗,或者提供个编译的截图? |
|
已确认当前 PR 的 CI 验证都是通过状态:
这个改动只修正 N32 USART2 remap 宏引用,目前 CI 已覆盖静态构建与基础检查。如果需要指定某个 N32 BSP/target 的本地编译日志或截图,请告诉我具体目标,我再按目标补跑并贴结果。 |
目前这个应该是没有上ci的,如果你能添加一下就更好了(如果支持gcc的话)。 |
📌 Code Review Assignment🏷️ Tag: workflowReviewers: @Rbb666 @kurisaW @supperthomas Changed Files (Click to expand)
📊 Current Review Status (Last Updated: 2026-07-02 13:49 CST)
📝 Review Instructions
|
|
已按建议补了 CI 覆盖:
本机侧也确认过环境: |
Summary
Root cause
The BSP selected
GPIO_RMCP2_USART2, but the N32 standard peripheral headers define the remap macro asGPIO_RMP2_USART2. EnablingBSP_USING_UART2_PIN_RMP2therefore references an undefined macro during compilation.Closes #9013
Testing
git diff --checkbsp/n32g452xx/n32g452xx-mini-system/board/msp/n32_msp.cGPIO_RMP2_USART2is defined inbsp/n32g452xx/Libraries/N32_Std_Driver/n32g45x_std_periph_driver/inc/n32g45x_gpio.hGPIO_RMCP2_USART2no longer appears underbsp/n32g452xxNot run: N32G452 BSP build. This machine does not have
scons,gcc,arm-none-eabi-gcc, orclanginstalled.