-
Notifications
You must be signed in to change notification settings - Fork 5.4k
[bsp][gd32]:add gd32vw533xx pwm support #11155
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| scons.args: &scons | ||
| scons_arg: | ||
| - '--strict' | ||
|
|
||
| # ------ component CI ------ | ||
| component.pwm: | ||
| kconfig: | ||
| - CONFIG_BSP_USING_PWM=y | ||
| - CONFIG_BSP_USING_PWM0=y |
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -45,6 +45,10 @@ if GetDepend('RT_USING_HWTIMER'): | |||||||||||
| if GetDepend('RT_USING_ADC'): | ||||||||||||
| src += ['drv_adc.c'] | ||||||||||||
|
|
||||||||||||
| # add pwm drivers. | ||||||||||||
| if GetDepend(['RT_USING_PWM', 'SOC_GD32VW553H']): | ||||||||||||
|
||||||||||||
| if GetDepend(['RT_USING_PWM', 'SOC_GD32VW553H']): | |
| if GetDepend(['RT_USING_PWM', 'SOC_GD32VW553H']) and \ | |
| (GetDepend('BSP_USING_PWM0') or GetDepend('BSP_USING_PWM1') or \ | |
| GetDepend('BSP_USING_PWM2') or GetDepend('BSP_USING_PWM15') or \ | |
| GetDepend('BSP_USING_PWM16')): |
Copilot
AI
Feb 1, 2026
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.
[discrepancy_with_pr_description/类别]: PR metadata incomplete/mismatched / PR 元信息不完整或不匹配
English: The PR description still contains the template placeholder block (the square-bracketed section) and does not clearly state What/Why/How or tested BSP/config as required. Also the PR title mentions "gd32vw533xx", but the code changes target gd32vw553h (e.g. SOC_GD32VW553H). Please update the PR title/description to match the actual SoC/BSP and include the required verification details.
中文:PR 描述仍包含模板占位的方括号内容,且未按要求补充 What/Why/How 以及已验证的 BSP/.config/测试信息。另外标题写的是“gd32vw533xx”,但本次修改实际针对的是 gd32vw553h(例如 SOC_GD32VW553H)。请更新 PR 标题/描述以匹配实际 SoC/BSP,并补充必要的验证信息。
Copilot
AI
Feb 1, 2026
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.
[discrepancy_with_pr_description/类别]: PR title format/prefix should be adjusted / PR 标题前缀格式建议调整
English: PR title currently uses a colon ([bsp][gd32]:...) and mentions gd32vw533xx. RT-Thread PR titles are expected to follow the lowercase prefix format [module][subsystem] Description without punctuation in the prefix. Based on the modified files, a more accurate title would be like: [bsp][gd32] Add PWM support for gd32vw553h.
中文:当前 PR 标题使用了冒号([bsp][gd32]:...)且包含 gd32vw533xx。RT-Thread 通常要求标题使用小写前缀格式 [模块][子系统] 描述,前缀后不加标点。结合本次修改文件,更准确的标题建议类似:[bsp][gd32] Add PWM support for gd32vw553h。
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.
[bug/类别]:
BSP_USING_PWMcan be enabled with no PWM instances / 可能开启 PWM 总开关但未选择任何实例English: In this Kconfig,
BSP_USING_PWMcan be enabled while leaving allBSP_USING_PWM0/1/2/15/16asn. With the current driver implementation (tables only populated underBSP_USING_PWMx), this can lead to an empty configuration (0 devices registered / potential empty-initializer build issues). Please enforce selecting at least one PWM instance (e.g., make one channel defaultywhenBSP_USING_PWMis enabled, or add a Kconfig dependency/guard that prevents an all-nselection).中文:该 Kconfig 允许开启
BSP_USING_PWM,但BSP_USING_PWM0/1/2/15/16全部保持为n。结合当前驱动实现(表项仅在BSP_USING_PWMx下生成),这会导致空配置(注册 0 个设备/甚至出现空初始化导致编译问题)。建议强制至少选择一个 PWM 实例(例如在开启BSP_USING_PWM时让某个 PWMx 默认y,或增加依赖/约束避免全部为n的情况)。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.
down