提交 d4937b18 编写于 作者: Z zylx

【修改】添加对 esp32 的支持

上级 99e2020d
......@@ -96,7 +96,7 @@ msh >
## 注意事项
- 调试串口为串口3 映射说明
- 调试串口为串口1 映射说明
PA10 ------> USART1_RX
......
......@@ -5,7 +5,7 @@
*
* Change Logs:
* Date Author Notes
* 2019-09-17 tyustli first version
* 2019-10-25 zylx first version
*/
#include <rtthread.h>
......
......@@ -9,8 +9,8 @@ config SOC_STM32H750IB
menu "Onboard Peripheral Drivers"
config BSP_USING_SPI_FLASH
bool "Enable SPI FLASH (W25Q256 qspi)"
config BSP_USING_QSPI_FLASH
bool "Enable QSPI FLASH (W25Q256)"
select BSP_USING_QSPI
select RT_USING_SFUD
select RT_SFUD_USING_QSPI
......@@ -29,6 +29,16 @@ menu "Onboard Peripheral Drivers"
bool "Enable LCD"
select BSP_USING_PWM
default n
config BSP_USING_ESP32
bool "Enable ESP32"
select BSP_USING_UART4
select RT_USING_AT
select AT_USING_CLIENT
select AT_USING_SOCKET
select PKG_USING_AT_DEVICE
select AT_DEVICE_USING_ESP32
default n
endmenu
menu "On-chip Peripheral Drivers"
......@@ -47,6 +57,9 @@ menu "On-chip Peripheral Drivers"
bool "Enable UART1"
default y
config BSP_USING_UART4
bool "Enable UART4"
default y
endif
config BSP_USING_QSPI
......
......@@ -7,6 +7,25 @@ cwd = GetCurrentDir()
src = Glob('board.c')
src += Glob('CubeMX_Config/Src/stm32h7xx_hal_msp.c')
if GetDepend(['BSP_USING_QSPI_FLASH']):
src += Glob('ports/drv_qspi_flash.c')
if GetDepend('BSP_USING_SPI_LCD'):
src = src + ['ports/drv_lcd.c']
if GetDepend(['BSP_USING_SDCARD']):
src += Glob('ports/sdcard_port.c')
if GetDepend(['BSP_USING_ICM20608']) or GetDepend(['BSP_USING_AHT10']):
src += Glob('ports/sensor_port.c')
if GetDepend(['BSP_USING_AUDIO']):
src += Glob('ports/audio/drv_es8388.c')
src += Glob('ports/audio/drv_sound.c')
if GetDepend(['BSP_USING_AUDIO_RECORD']):
src += Glob('ports/audio/drv_mic.c')
path = [cwd]
path += [cwd + '/CubeMX_Config/Inc']
......
......@@ -5,7 +5,7 @@
*
* Change Logs:
* Date Author Notes
* 2018-11-06 SummerGift first version
* 2019-10-26 zylx first version
*/
#include "board.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册