-
Notifications
You must be signed in to change notification settings - Fork 5.3k
添加了国民技术N32G45x和N32L40x的pwm,定时外部时钟1、外部时钟2、pwm脉宽测量驱动程序,修改了串口和SPI的KConfig配置文件 #11071
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread! 为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。 🛠 操作步骤 | Steps
完成后,提交将自动更新至 如有问题欢迎联系我们,再次感谢您的贡献!💐 |
1.在N32L40x的平台添加了串口1-串口5的Kconfig串口配置
2025-12-18
1.在N32G457的平台添加了串口1-串口7的Kconfig串口配置,修改了串口结构体增加了引脚映射配置
在N32l406平台测试通过 在N32G457台测试通过
在N32L406和N32G457测试通过,部分定时器配置未添加
1. pwm驱动新增 2. 定时器外部时钟1实现脉冲计数,使用通道1和通道2`bsp\n32\libraries\n32_drivers\tim_etr_cnt.c` 3. 定时器外部时钟2实现脉冲计数,使用ETR引脚`bsp\n32\libraries\n32_drivers\drv_tim_external_counter.c` 4. pwm输入模式+dma方式下的脉宽测量`bsp\n32\libraries\n32_drivers\drv_tim_pulse_width.c` 5. 修改串口的引脚配置,使用KConfig方式配置`bsp\n32\libraries\n32_drivers\drv_usart.c 6. 修改SPI的引脚配置,使用KConfig方式配置`bsp\n32\libraries\n32_drivers\drv_spi.c` 新增的2-4个驱动均设置了示例代码和Finsh指令 # 并确认并列出已经在什么情况或板卡上进行了测试。 目前已经在2块开发版测试OK,这2款开发版的KConfig也做了响应的修改 1. bsp\n32\n32l40xcl-stb 2. bsp\n32\n32g457qel-stb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
多余文件请删除
bsp n32 - 快捷方式.lnk
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
多余文件
bsp/n32 - 快捷方式.lnk
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
多余文件
| * | ||
| * @copyright Copyright (c) 2025 58 | ||
| * | ||
| * 2025-12-2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
日志格式请按照RT-Thread规范编写,另外中文注释建议统一修改为英文
|
commit日志可以规范一下提交 |
拉取/合并请求描述:(PR description)
[
本次PR主要新增了国民技术N32 驱动
bsp\n32\libraries\n32_drivers\tim_etr_cnt.cbsp\n32\libraries\n32_drivers\drv_tim_external_counter.cbsp\n32\libraries\n32_drivers\drv_tim_pulse_width.cbsp\n32\libraries\n32_drivers\drv_spi.c新增的2-4个驱动均设置了示例代码和Finsh指令
并确认并列出已经在什么情况或板卡上进行了测试。
目前已经在2块开发版测试OK,这2款开发版的KConfig也做了响应的修改
]
当前拉取/合并请求的状态 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