summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguo <[email protected]>2021-08-08 20:23:17 +0800
committerGitHub <[email protected]>2021-08-08 20:23:17 +0800
commitd92dcb59be38eed29073b85c4cdf73e73e13a288 (patch)
tree796df27c312eb27dc2ae9226d615844e67067d1a
parent85d7748266291aba1c5557aad1d3fe0e25daa608 (diff)
parent0c4b2a9e3c348838d006f9fc8f0fb74f8c1e1159 (diff)
Merge pull request #4920 from mysterywolf/at-esp8266
[stm32][stm32f407-explorer][Kconfig] implement ESP8266 configuration in extended module driver menu
-rw-r--r--bsp/stm32/stm32f407-atk-explorer/README.md7
-rw-r--r--bsp/stm32/stm32f407-atk-explorer/board/Kconfig29
2 files changed, 33 insertions, 3 deletions
diff --git a/bsp/stm32/stm32f407-atk-explorer/README.md b/bsp/stm32/stm32f407-atk-explorer/README.md
index b740de91c3..c55eaa84ef 100644
--- a/bsp/stm32/stm32f407-atk-explorer/README.md
+++ b/bsp/stm32/stm32f407-atk-explorer/README.md
@@ -39,13 +39,14 @@
| **板载外设** | **支持情况** | **备注** |
| :------------ | :----------: | :-----------------------------------: |
-| USB 转串口 | 支持 | |
+| USB 转串口(COM1) | 支持 | |
| COM2 | 支持 | 和以太网、PWM 冲突,如需使用该外设,请使用 CubeMX 重新配置 UART2 管脚 |
| COM3 | 支持 | |
| MPU6050 | 支持 | |
| Flash | 支持 | |
| SRAM | 支持 | |
-| SD卡 | 支持 | |
+| SD卡 | 支持 | 支持FATFS文件系统 |
+| W25Q128 | 支持 | 支持LittleFS文件系统 |
| 以太网 | 支持 | |
| WM8978 | 暂不支持 | |
| **片上外设** | **支持情况** | **备注** |
@@ -61,7 +62,7 @@
| USB Device | 支持 | |
| USB Host | 支持 | |
| **扩展模块** | **支持情况** | **备注** |
-| ATK-ESP8266 模块 | 暂不支持 | 即将支持 |
+| ATK-ESP8266 模块 | 支持 | COM3 |
## 使用说明
diff --git a/bsp/stm32/stm32f407-atk-explorer/board/Kconfig b/bsp/stm32/stm32f407-atk-explorer/board/Kconfig
index 70e0c09762..c9c9323fca 100644
--- a/bsp/stm32/stm32f407-atk-explorer/board/Kconfig
+++ b/bsp/stm32/stm32f407-atk-explorer/board/Kconfig
@@ -5,6 +5,7 @@ config SOC_STM32F407ZG
select SOC_SERIES_STM32F4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
+ select PKG_USING_RT_MEMCPY_CM
default y
menu "Onboard Peripheral Drivers"
@@ -388,6 +389,34 @@ endmenu
menu "Board extended module Drivers"
+ menuconfig BSP_USING_AT_ESP8266
+ bool "Enable ESP8266(AT Command, COM3)"
+ default n
+ select BSP_USING_COM3
+ select PKG_USING_AT_DEVICE
+ select AT_DEVICE_USING_ESP8266
+ select AT_DEVICE_ESP8266_SAMPLE
+
+ if BSP_USING_AT_ESP8266
+
+ config ESP8266_SAMPLE_WIFI_SSID
+ string "WIFI ssid"
+ default "rtthread"
+
+ config ESP8266_SAMPLE_WIFI_PASSWORD
+ string "WIFI password"
+ default "12345678"
+
+ config ESP8266_SAMPLE_CLIENT_NAME
+ string "AT client device name (Must be 'uart3')"
+ default "uart3"
+
+ config ESP8266_SAMPLE_RECV_BUFF_LEN
+ int "The maximum length of receive line buffer"
+ default 512
+
+ endif
+
endmenu
endmenu