mirror of https://github.com/RT-Thread/rt-thread
[bsp][stm32] 为文档添加 PWM 驱动教程
This commit is contained in:
parent
daf211bee6
commit
7a6e7152cf
|
@ -96,3 +96,17 @@
|
||||||
| 11 | EMAC | **配置 ETH 外设的工作模式(一般为 RMII 模式)** |
|
| 11 | EMAC | **配置 ETH 外设的工作模式(一般为 RMII 模式)** |
|
||||||
| 12 | SDRAM | **需要根据板载的 SDRAM 型号配置片选脚,地址线,数据线等** |
|
| 12 | SDRAM | **需要根据板载的 SDRAM 型号配置片选脚,地址线,数据线等** |
|
||||||
|
|
||||||
|
### 5.3 PWM配置步骤
|
||||||
|
|
||||||
|
1. 打开 STM32CubeMX 工程,设置 PWM 在 Cube 里的选项。如下图:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
2. 打开 stm32/stm32f429-atk-apollo/board/Kconfig ,添加 Kconfig 选项。选中自己添加的选项后,生成一遍工程。如下图:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
3. 打开工程进行编译,工程会提示 PWM2_CONFIG 未定义。 可以在 stm32/libraries/HAL_Drivers/config/f4/pwm_config.h 中进行定义。
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 148 KiB |
Binary file not shown.
After Width: | Height: | Size: 148 KiB |
Binary file not shown.
After Width: | Height: | Size: 95 KiB |
Binary file not shown.
After Width: | Height: | Size: 115 KiB |
Loading…
Reference in New Issue