Skip to content

Commit d92dcb5

Browse files
authored
Merge pull request #4920 from mysterywolf/at-esp8266
[stm32][stm32f407-explorer][Kconfig] implement ESP8266 configuration in extended module driver menu
2 parents 85d7748 + 0c4b2a9 commit d92dcb5

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-3
lines changed

bsp/stm32/stm32f407-atk-explorer/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,14 @@
3939

4040
| **板载外设** | **支持情况** | **备注** |
4141
| :------------ | :----------: | :-----------------------------------: |
42-
| USB 转串口 | 支持 | |
42+
| USB 转串口(COM1) | 支持 | |
4343
| COM2 | 支持 | 和以太网、PWM 冲突,如需使用该外设,请使用 CubeMX 重新配置 UART2 管脚 |
4444
| COM3 | 支持 | |
4545
| MPU6050 | 支持 | |
4646
| Flash | 支持 | |
4747
| SRAM | 支持 | |
48-
| SD卡 | 支持 | |
48+
| SD卡 | 支持 | 支持FATFS文件系统 |
49+
| W25Q128 | 支持 | 支持LittleFS文件系统 |
4950
| 以太网 | 支持 | |
5051
| WM8978 | 暂不支持 | |
5152
| **片上外设** | **支持情况** | **备注** |
@@ -61,7 +62,7 @@
6162
| USB Device | 支持 | |
6263
| USB Host | 支持 | |
6364
| **扩展模块** | **支持情况** | **备注** |
64-
| ATK-ESP8266 模块 | 暂不支持 | 即将支持 |
65+
| ATK-ESP8266 模块 | 支持 | COM3 |
6566

6667

6768
## 使用说明

bsp/stm32/stm32f407-atk-explorer/board/Kconfig

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ config SOC_STM32F407ZG
55
select SOC_SERIES_STM32F4
66
select RT_USING_COMPONENTS_INIT
77
select RT_USING_USER_MAIN
8+
select PKG_USING_RT_MEMCPY_CM
89
default y
910

1011
menu "Onboard Peripheral Drivers"
@@ -388,6 +389,34 @@ endmenu
388389

389390
menu "Board extended module Drivers"
390391

392+
menuconfig BSP_USING_AT_ESP8266
393+
bool "Enable ESP8266(AT Command, COM3)"
394+
default n
395+
select BSP_USING_COM3
396+
select PKG_USING_AT_DEVICE
397+
select AT_DEVICE_USING_ESP8266
398+
select AT_DEVICE_ESP8266_SAMPLE
399+
400+
if BSP_USING_AT_ESP8266
401+
402+
config ESP8266_SAMPLE_WIFI_SSID
403+
string "WIFI ssid"
404+
default "rtthread"
405+
406+
config ESP8266_SAMPLE_WIFI_PASSWORD
407+
string "WIFI password"
408+
default "12345678"
409+
410+
config ESP8266_SAMPLE_CLIENT_NAME
411+
string "AT client device name (Must be 'uart3')"
412+
default "uart3"
413+
414+
config ESP8266_SAMPLE_RECV_BUFF_LEN
415+
int "The maximum length of receive line buffer"
416+
default 512
417+
418+
endif
419+
391420
endmenu
392421

393422
endmenu

0 commit comments

Comments
 (0)