[bsp][stm32] 为文档添加 ADC 驱动教程
This commit is contained in:
parent
8dc89433f7
commit
a7ef0790c5
@ -131,3 +131,16 @@
|
|||||||

|

|
||||||
|
|
||||||
#### 5.3.2 ADC 外设驱动添加教程
|
#### 5.3.2 ADC 外设驱动添加教程
|
||||||
|
|
||||||
|
1. 打开 STM32CubeMX 工程,设置 ADC 在 Cube 里的选项。如下图:
|
||||||
|
|
||||||
|

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

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

|
||||||
|

|
BIN
bsp/stm32/docs/figures/adc_config1.png
Normal file
BIN
bsp/stm32/docs/figures/adc_config1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 119 KiB |
BIN
bsp/stm32/docs/figures/adc_config2.png
Normal file
BIN
bsp/stm32/docs/figures/adc_config2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 133 KiB |
BIN
bsp/stm32/docs/figures/adc_config3.png
Normal file
BIN
bsp/stm32/docs/figures/adc_config3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 106 KiB |
BIN
bsp/stm32/docs/figures/adc_config4.png
Normal file
BIN
bsp/stm32/docs/figures/adc_config4.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 169 KiB |
Loading…
x
Reference in New Issue
Block a user