Skip to content

[bsp][n32] n32hxxx: extend H47x_48x/H49x/H7xx driver support - #11800

Open
OnlyoutzZ wants to merge 1 commit into
RT-Thread:masterfrom
OnlyoutzZ:development
Open

[bsp][n32] n32hxxx: extend H47x_48x/H49x/H7xx driver support#11800
OnlyoutzZ wants to merge 1 commit into
RT-Thread:masterfrom
OnlyoutzZ:development

Conversation

@OnlyoutzZ

Copy link
Copy Markdown
Contributor

这个 PR 做了什么

bsp/n32/n32hxxx 下扩展 N32H47x_48x / N32H49x / N32H7xx 三系列的驱动支持,覆盖 n32h487zgl7-evbn32h497zgl7-evbn32h760zil7-stb 三块板。

libraries/N32_Drivers/ —— 三块板共用(29 个文件)

  • 新增 ADC / DAC / I2C / SPI 的 config 头文件,覆盖 h47x_48xh49xh7xx 三个系列
  • 扩展共用驱动:drv_adc.cdrv_dac.cdrv_eth.c/hdrv_gpio.c/hdrv_hard_i2c.c/hdrv_nand.cdrv_qspi.c/hdrv_sdram.cdrv_spi.c/hdrv_usart.c/hdrv_wdt.c,各自补上对应 SOC_SERIES_* 的分支

n32h487zgl7-evb / n32h497zgl7-evb(14 + 15 个文件)

  • 新增 board/ports/femc_timing.c/h(FEMC 时序表)、phy_reset.c(ETH PHY 复位)、usb_config.h(CherryUSB 配置头)
  • 更新 board/Kconfigboard/SConscriptboard/ports/SConscriptboard/board.hrtconfig.h.config 与 IAR/Keil 工程文件
  • 497 的 board/SConscript 补上 ports 包含路径和 N32H49X 器件宏,与 IAR 工程的定义保持一致

n32h760zil7-stb(7 个文件) —— 更新 board/Kconfigrtconfig.h.config 与 Keil 工程文件

CI(3 个文件) —— 把三块板补进 .github/workflows/manual_trigger_scons_except_STM32_all.ymltools/ci/bsp_detail.ymltools/ci/toolchain_bsp.yml.github/ALL_BSP_COMPILE.json 中已有);bsp/README.md 同步 BSP 矩阵行

自检

  • 仔细查看过代码对比
  • 代码风格正确,已用 clang-format 格式化(tools/ci/clang_format_check.py 通过:38 PASS / 0 FAIL)
  • 不包含 #if 0 和已注释代码
  • 所有变更均有原因,不影响其他组件或 BSP
  • 对难懂代码提供注释
  • 相关 BSP 已在 .github/ALL_BSP_COMPILE.json 中登记
  • 新增文件均带 Apache-2.0 SPDX 标识与版权声明(16 / 16)

范围说明

本 PR 只含 BSP 侧改动,不含 components/drivers/usb/cherryusb 的任何提交 —— 该适配在 #11764

🤖 Generated with Claude Code

- libraries/N32_Drivers: add ADC/DAC/I2C/SPI config headers for the
  h47x_48x, h49x and h7xx series, and extend the shared drivers
  (adc, dac, eth, gpio, hard_i2c, nand, qspi, sdram, spi, usart, wdt).
- n32h487zgl7-evb / n32h497zgl7-evb: add board ports (femc_timing,
  phy_reset, usb_config) and update Kconfig, SConscript, rtconfig and
  the IAR/Keil project files.
- n32h760zil7-stb: update Kconfig and rtconfig.
- CI: register the three n32hxxx boards.
@github-actions

Copy link
Copy Markdown

👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread!

为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。
To ensure your code complies with RT-Thread's coding style, please run the code formatting workflow by following the steps below (If the formatting of CI fails to run).


🛠 操作步骤 | Steps

  1. 前往 Actions 页面 | Go to the Actions page
    点击进入工作流 → | Click to open workflow →

  2. 点击 Run workflow | Click Run workflow

  • Use workflow from 保持默认分支(通常为 master
    Keep the default branch (usually master) in Use workflow from
  • branch 输入框填写 PR 分支 development
    Enter PR branch development in the branch field
  • 设置需排除的文件/目录(目录请以"/"结尾)
    Set files/directories to exclude (directories should end with "/")
  1. 等待工作流完成 | Wait for the workflow to complete
    格式化后的代码将作为独立提交推送至你的分支。
    The formatting changes will be pushed to your branch as a separate commit.

完成后,提交将自动更新至 development 分支,关联的 Pull Request 也会同步更新。
Once completed, commits will be pushed to the development branch automatically, and the related Pull Request will be updated.

如有问题欢迎联系我们,再次感谢您的贡献!💐
If you have any questions, feel free to reach out. Thanks again for your contribution!

@github-actions github-actions Bot added BSP action github action yml imporve tools labels Sep 11, 2026
@github-actions

github-actions Bot commented Sep 11, 2026

Copy link
Copy Markdown

📌 Code Review Assignment

🏷️ Tag: workflow

Reviewers: @Rbb666 @kurisaW @supperthomas

Changed Files (Click to expand)
  • .github/workflows/manual_trigger_scons_except_STM32_all.yml

📊 Current Review Status (Last Updated: 2026-09-11 18:53 CST)


📝 Review Instructions

  1. 维护者可以通过单击此处来刷新审查状态: 🔄 刷新状态
    Maintainers can refresh the review status by clicking here: 🔄 Refresh Status

  2. 确认审核通过后评论 LGTM/lgtm
    Comment LGTM/lgtm after confirming approval

  3. PR合并前需至少一位维护者确认
    PR must be confirmed by at least one maintainer before merging

ℹ️ 刷新CI状态操作需要具备仓库写入权限。
ℹ️ Refresh CI status operation requires repository Write permission.

@github-actions

github-actions Bot commented Sep 11, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action github action yml imporve BSP tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant