11# Copyright (c) 2019 Tobias Svehagen
22# SPDX-License-Identifier: Apache-2.0
33
4- menuconfig WIFI_ESP
5- bool "Espressif ESP8266 and ESP32 support"
4+ menuconfig WIFI_ESP_AT
5+ bool "Espressif AT Command support"
66 select MODEM
77 select MODEM_CONTEXT
88 select MODEM_CMD_HANDLER
99 select MODEM_IFACE_UART
1010 select NET_L2_WIFI_MGMT
1111 select WIFI_OFFLOAD
12+ help
13+ Enable Espressif AT Command offloaded WiFi driver. It is supported on
14+ any serial capable platform and communicates with Espressif chips
15+ running ESP-AT firmware (https://github.com/espressif/esp-at).
1216
13- if WIFI_ESP
17+ if WIFI_ESP_AT
1418
15- config WIFI_ESP_RX_STACK_SIZE
19+ config WIFI_ESP_AT_RX_STACK_SIZE
1620 int "Stack size for the Espressif esp wifi driver RX thread"
1721 default 1024
1822 help
1923 This stack is used by the Espressif ESP RX thread.
2024
21- config WIFI_ESP_RX_THREAD_PRIORITY
25+ config WIFI_ESP_AT_RX_THREAD_PRIORITY
2226 int "Priority of RX thread"
2327 default 7
2428 help
2529 Priority of thread used for processing RX data.
2630
27- config WIFI_ESP_WORKQ_STACK_SIZE
31+ config WIFI_ESP_AT_WORKQ_STACK_SIZE
2832 int "Stack size for the esp driver work queue"
2933 default 2048
3034 help
3135 This stack is used by the work queue to pass off net_pkt data
3236 to the rest of the network stack, letting the rx thread continue
3337 processing data.
3438
35- config WIFI_ESP_WORKQ_THREAD_PRIORITY
39+ config WIFI_ESP_AT_WORKQ_THREAD_PRIORITY
3640 int "Priority of work queue thread"
3741 default 7
3842 help
3943 Priority of thread used for processing driver work queue items.
4044
41- config WIFI_ESP_MDM_RING_BUF_SIZE
45+ config WIFI_ESP_AT_MDM_RING_BUF_SIZE
4246 int "Modem ring buffer size"
4347 default 1024
4448 help
4549 Ring buffer size used by modem UART interface handler.
4650
47- config WIFI_ESP_MDM_RX_BUF_COUNT
51+ config WIFI_ESP_AT_MDM_RX_BUF_COUNT
4852 int "Modem RX buffer count"
4953 default 30
5054 help
5155 Number of preallocated RX buffers used by modem command handler.
5256
53- config WIFI_ESP_MDM_RX_BUF_SIZE
57+ config WIFI_ESP_AT_MDM_RX_BUF_SIZE
5458 int "Modem RX buffer size"
5559 default 128
5660 help
5761 Size of preallocated RX buffers used by modem command handler.
5862
59- config WIFI_ESP_PASSIVE_MODE
63+ config WIFI_ESP_AT_PASSIVE_MODE
6064 bool "Use passive mode"
6165 help
6266 This lets the ESP handle the TCP window so that data can flow
6367 at a rate that the driver can handle. Without this, data might get
6468 lost if the driver cannot empty the device buffer quickly enough.
6569
66- config WIFI_ESP_RESET_TIMEOUT
70+ config WIFI_ESP_AT_RESET_TIMEOUT
6771 int "Reset timeout"
6872 default 3000
6973 help
7074 How long to wait for device to become ready after AT+RST has been
7175 sent. This can vary with chipset (ESP8266/ESP32) and firmware
7276 version. This is ignored if a reset pin is configured.
7377
74- config WIFI_ESP_RX_NET_PKT_ALLOC_TIMEOUT
78+ config WIFI_ESP_AT_RX_NET_PKT_ALLOC_TIMEOUT
7579 int "Network interface RX packet allocation timeout"
7680 default 5000
7781 help
7882 Network interface RX net_pkt allocation timeout in milliseconds.
7983
8084choice
8185 prompt "ESP IP Address configuration"
82- default WIFI_ESP_IP_DHCP
86+ default WIFI_ESP_AT_IP_DHCP
8387 help
8488 Choose whether to use an IP assigned by DHCP Server or
8589 configure a static IP Address.
8690
87- config WIFI_ESP_IP_DHCP
91+ config WIFI_ESP_AT_IP_DHCP
8892 bool "DHCP"
8993 help
9094 Use DHCP to get an IP Address.
9195
92- config WIFI_ESP_IP_STATIC
96+ config WIFI_ESP_AT_IP_STATIC
9397 bool "Static"
9498 help
9599 Setup Static IP Address.
96100
97101endchoice
98102
99- if WIFI_ESP_IP_STATIC
103+ if WIFI_ESP_AT_IP_STATIC
100104
101- config WIFI_ESP_IP_ADDRESS
105+ config WIFI_ESP_AT_IP_ADDRESS
102106 string "ESP Station mode IP Address"
103107
104- config WIFI_ESP_IP_GATEWAY
108+ config WIFI_ESP_AT_IP_GATEWAY
105109 string "Gateway Address"
106110
107- config WIFI_ESP_IP_MASK
111+ config WIFI_ESP_AT_IP_MASK
108112 string "Network Mask"
109113
110114endif
@@ -127,11 +131,11 @@ config WIFI_ESP_AT_VERSION_2_0
127131
128132endchoice
129133
130- config WIFI_ESP_DNS_USE
134+ config WIFI_ESP_AT_DNS_USE
131135 bool "Use DNS from ESP"
132136 depends on DNS_RESOLVER
133137 help
134138 Fetch DNS servers from ESP chip with AT+CIPDNS? command and apply that
135139 list to system DNS resolver.
136140
137- endif # WIFI_ESP
141+ endif # WIFI_ESP_AT
0 commit comments