mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-10-02 14:23:19 +08:00
* [bsp/Infineon] Fix PWM macro mismatches left by the CHx_PORTy rename
Commit e5382cb733 renamed the PWM table guards in drv_pwm.c to the
CHx_PORTy convention but only adapted the psoc6-evk Kconfig, leaving
several mismatches behind:
- The psoc6-evaluationkit-062S2 slider sample still tested the old
flat name BSP_USING_PWM0_PORT0 while the board Kconfig defines
BSP_USING_PWM0_CH0_PORT0, so the PWM init was compiled out.
- The PORT13 entry was renamed to BSP_USING_PWM0_CH7_PORT13, a macro
that no Kconfig defines, and the channel is wrong anyway:
PWM0_CH3_PORT13_CONFIG carries .channel = 3, PORT13 sits under the
PWM0 CH3 menu, and the slider demo selects CH3 + PORT13.
- The PSOC62 template and five psoc6 boards (cy8ckit-062-BLE,
cy8ckit-062-WIFI-BT, cy8ckit-062S2-43012, cy8ckit-062s4,
cy8cproto-062S3-4343W) still define the old flat names.
Fix all of them by migrating the evaluationkit sample to
BSP_USING_PWM0_CH0_PORT0 and renaming the PORT13 group to
BSP_USING_PWM0_CH3_PORT13 across drv_pwm.c, the PSOC62 template and
the five boards' Kconfigs/slider samples, so Kconfig, driver table
and samples match again.
Note: the sibling guards BSP_USING_PWM0_CH7_PORT2/5/7/9/10/12 are
still not generated by these boards' Kconfigs; left untouched for a
separate discussion.
* style: format code with clang-format [skip ci]
Infineon-PSOC6 BSP 说明
PSOC6 系列 BSP 目前支持情况如下表所示:
| BSP 文件夹名称 | 开发板名称 |
|---|---|
| PSOC62 系列 | |
| psoc6-cy8ckit-062S2-43012 | Infineon 官方 CY8CKIT-062-BLE PSoC 6 BLE Pioneer Kit 开发板 |
| psoc6-cy8cproto-062S3-4343W | Infineon 官方 PSoC™ 62S3 Wi-Fi BT Prototyping Kit 开发板 |
| psoc6-evaluationkit-062S2 | RT-Thread 联合 Infineon 推出的评估开发板 |
| psoc6-cy8ckit-062-BLE | Infineon 官方 psoc6-cy8ckit-062-BLE 开发板 |
| psoc6-cy8ckit-062-WIFI-BT | Infineon 官方 psoc6-cy8ckit-062-WIFI-BT 开发板 |
| psoc6-cy8ckit-062s4 | Infineon 官方 psoc6-cy8ckit-062s4 开发板 |
XMC 系列 BSP 目前支持情况如下表所示:
| 更多操作BSP 文件夹名称 | 开发板名称 |
|---|---|
| XMC系列 | |
| xmc7200-kit_xmc7200_evk | Infineon 官方 xmc7200-kit_xmc7200_evk 开发板 |
可以通过阅读相应 BSP 下的 README 来快速上手,如果想要使用 BSP 更多功能可参考 docs 文件夹下提供的说明文档,如下表所示:
| BSP 制作与提交 | 简介 |
|---|---|
| BSP 制作教程 | 讲解 PSOC6 系列 BSP 的制作方法,以及在制作 BSP 和提交 BSP 时应当遵守的规范 |