Skip to content

Commit 3450550

Browse files
committed
Pull latest IDF and enable TinyUSB
1 parent cda6fac commit 3450550

File tree

245 files changed

+10307
-100
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

245 files changed

+10307
-100
lines changed

libraries/BLE/src/FreeRTOS.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Author: kolban
66
*/
77

8+
#ifdef __cplusplus
89
#ifndef MAIN_FREERTOS_H_
910
#define MAIN_FREERTOS_H_
1011
#include <stdint.h>
@@ -75,3 +76,6 @@ class Ringbuffer {
7576
};
7677

7778
#endif /* MAIN_FREERTOS_H_ */
79+
#else
80+
#include "freertos/FreeRTOS.h"
81+
#endif

platform.txt

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

tools/platformio-build-esp32.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@
223223
"UNITY_INCLUDE_CONFIG_H",
224224
"WITH_POSIX",
225225
"_GNU_SOURCE",
226-
("IDF_VER", '\\"v4.2-dev-1575-ga3520970f\\"'),
226+
("IDF_VER", '\\"v4.2-dev-1660-g7d7521367\\"'),
227227
"ESP_PLATFORM",
228228
"ARDUINO_ARCH_ESP32",
229229
"ESP32",

tools/platformio-build-esp32s2.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@
165165
join(FRAMEWORK_DIR, "tools", "sdk", "esp32s2", "include", "esp_http_client", "include"),
166166
join(FRAMEWORK_DIR, "tools", "sdk", "esp32s2", "include", "esp_http_server", "include"),
167167
join(FRAMEWORK_DIR, "tools", "sdk", "esp32s2", "include", "esp_https_ota", "include"),
168+
join(FRAMEWORK_DIR, "tools", "sdk", "esp32s2", "include", "esp_https_server", "include"),
168169
join(FRAMEWORK_DIR, "tools", "sdk", "esp32s2", "include", "protobuf-c", "protobuf-c"),
169170
join(FRAMEWORK_DIR, "tools", "sdk", "esp32s2", "include", "protocomm", "include", "common"),
170171
join(FRAMEWORK_DIR, "tools", "sdk", "esp32s2", "include", "protocomm", "include", "security"),
@@ -191,6 +192,12 @@
191192
join(FRAMEWORK_DIR, "tools", "sdk", "esp32s2", "include", "openssl", "include"),
192193
join(FRAMEWORK_DIR, "tools", "sdk", "esp32s2", "include", "perfmon", "include"),
193194
join(FRAMEWORK_DIR, "tools", "sdk", "esp32s2", "include", "spiffs", "include"),
195+
join(FRAMEWORK_DIR, "tools", "sdk", "esp32s2", "include", "freertos", "include", "freertos"),
196+
join(FRAMEWORK_DIR, "tools", "sdk", "esp32s2", "include", "tinyusb", "port", "esp32s2", "include"),
197+
join(FRAMEWORK_DIR, "tools", "sdk", "esp32s2", "include", "tinyusb", "port", "common", "include"),
198+
join(FRAMEWORK_DIR, "tools", "sdk", "esp32s2", "include", "tinyusb", "tinyusb", "hw", "bsp"),
199+
join(FRAMEWORK_DIR, "tools", "sdk", "esp32s2", "include", "tinyusb", "tinyusb", "src"),
200+
join(FRAMEWORK_DIR, "tools", "sdk", "esp32s2", "include", "tinyusb", "tinyusb", "src", "device"),
194201
join(FRAMEWORK_DIR, "tools", "sdk", "esp32s2", "include", "ulp", "include"),
195202
join(FRAMEWORK_DIR, "tools", "sdk", "esp32s2", "include", "unity", "include"),
196203
join(FRAMEWORK_DIR, "tools", "sdk", "esp32s2", "include", "unity", "unity", "src"),
@@ -205,7 +212,7 @@
205212
],
206213

207214
LIBS=[
208-
"-lxtensa", "-lmbedtls", "-lefuse", "-lbootloader_support", "-lapp_update", "-lspi_flash", "-lesp_system", "-lsoc", "-lvfs", "-lesp_eth", "-ltcpip_adapter", "-lesp_netif", "-lesp_event", "-lwpa_supplicant", "-lnvs_flash", "-lesp_wifi", "-llwip", "-llog", "-lheap", "-lesp_ringbuf", "-ldriver", "-lpthread", "-lespcoredump", "-lesp32s2", "-lesp_common", "-lesp_timer", "-lfreertos", "-lnewlib", "-lcxx", "-lapp_trace", "-lasio", "-lcbor", "-lcoap", "-lconsole", "-lnghttp", "-lesp-tls", "-lesp_gdbstub", "-lesp_hid", "-ltcp_transport", "-lesp_http_client", "-lesp_http_server", "-lesp_https_ota", "-lprotobuf-c", "-lprotocomm", "-lmdns", "-lesp_local_ctrl", "-lsdmmc", "-lesp_serial_slave_link", "-lesp_websocket_client", "-lexpat", "-lwear_levelling", "-lfatfs", "-lfreemodbus", "-ljsmn", "-ljson", "-llibsodium", "-lmqtt", "-lopenssl", "-lperfmon", "-lspiffs", "-lulp", "-lunity", "-lwifi_provisioning", "-lfb_gfx", "-lasio", "-lcbor", "-lcoap", "-lesp_gdbstub", "-lesp_hid", "-lesp_https_ota", "-lesp_local_ctrl", "-lesp_serial_slave_link", "-lesp_websocket_client", "-lexpat", "-lfreemodbus", "-ljsmn", "-llibsodium", "-lmqtt", "-lperfmon", "-lunity", "-lwifi_provisioning", "-lprotocomm", "-lprotobuf-c", "-ljson", "-lfb_gfx", "-lmdns", "-lconsole", "-lfatfs", "-lsdmmc", "-lwear_levelling", "-lopenssl", "-lspiffs", "-lxtensa", "-lmbedtls", "-lefuse", "-lbootloader_support", "-lapp_update", "-lspi_flash", "-lesp_system", "-lsoc", "-lvfs", "-lesp_eth", "-ltcpip_adapter", "-lesp_netif", "-lesp_event", "-lwpa_supplicant", "-lnvs_flash", "-lesp_wifi", "-llwip", "-llog", "-lheap", "-lesp_ringbuf", "-ldriver", "-lpthread", "-lespcoredump", "-lesp32s2", "-lesp_common", "-lesp_timer", "-lfreertos", "-lnewlib", "-lcxx", "-lapp_trace", "-lnghttp", "-lesp-tls", "-ltcp_transport", "-lesp_http_client", "-lesp_http_server", "-lulp", "-lmbedtls", "-lmbedcrypto", "-lmbedx509", "-lsoc_esp32s2", "-lcoexist", "-lcore", "-lespnow", "-lmesh", "-lnet80211", "-lpp", "-lrtc", "-lsmartconfig", "-lphy", "-lxtensa", "-lmbedtls", "-lefuse", "-lbootloader_support", "-lapp_update", "-lspi_flash", "-lesp_system", "-lsoc", "-lvfs", "-lesp_eth", "-ltcpip_adapter", "-lesp_netif", "-lesp_event", "-lwpa_supplicant", "-lnvs_flash", "-lesp_wifi", "-llwip", "-llog", "-lheap", "-lesp_ringbuf", "-ldriver", "-lpthread", "-lespcoredump", "-lesp32s2", "-lesp_common", "-lesp_timer", "-lfreertos", "-lnewlib", "-lcxx", "-lapp_trace", "-lnghttp", "-lesp-tls", "-ltcp_transport", "-lesp_http_client", "-lesp_http_server", "-lulp", "-lmbedtls", "-lmbedcrypto", "-lmbedx509", "-lsoc_esp32s2", "-lcoexist", "-lcore", "-lespnow", "-lmesh", "-lnet80211", "-lpp", "-lrtc", "-lsmartconfig", "-lphy", "-lxtensa", "-lmbedtls", "-lefuse", "-lbootloader_support", "-lapp_update", "-lspi_flash", "-lesp_system", "-lsoc", "-lvfs", "-lesp_eth", "-ltcpip_adapter", "-lesp_netif", "-lesp_event", "-lwpa_supplicant", "-lnvs_flash", "-lesp_wifi", "-llwip", "-llog", "-lheap", "-lesp_ringbuf", "-ldriver", "-lpthread", "-lespcoredump", "-lesp32s2", "-lesp_common", "-lesp_timer", "-lfreertos", "-lnewlib", "-lcxx", "-lapp_trace", "-lnghttp", "-lesp-tls", "-ltcp_transport", "-lesp_http_client", "-lesp_http_server", "-lulp", "-lmbedtls", "-lmbedcrypto", "-lmbedx509", "-lsoc_esp32s2", "-lcoexist", "-lcore", "-lespnow", "-lmesh", "-lnet80211", "-lpp", "-lrtc", "-lsmartconfig", "-lphy", "-lxtensa", "-lmbedtls", "-lefuse", "-lbootloader_support", "-lapp_update", "-lspi_flash", "-lesp_system", "-lsoc", "-lvfs", "-lesp_eth", "-ltcpip_adapter", "-lesp_netif", "-lesp_event", "-lwpa_supplicant", "-lnvs_flash", "-lesp_wifi", "-llwip", "-llog", "-lheap", "-lesp_ringbuf", "-ldriver", "-lpthread", "-lespcoredump", "-lesp32s2", "-lesp_common", "-lesp_timer", "-lfreertos", "-lnewlib", "-lcxx", "-lapp_trace", "-lnghttp", "-lesp-tls", "-ltcp_transport", "-lesp_http_client", "-lesp_http_server", "-lulp", "-lmbedtls", "-lmbedcrypto", "-lmbedx509", "-lsoc_esp32s2", "-lcoexist", "-lcore", "-lespnow", "-lmesh", "-lnet80211", "-lpp", "-lrtc", "-lsmartconfig", "-lphy", "-lhal", "-lm", "-lnewlib", "-lgcc", "-lstdc++", "-lpthread", "-lapp_trace", "-lgcov", "-lapp_trace", "-lgcov", "-lc"
215+
"-lxtensa", "-lmbedtls", "-lefuse", "-lbootloader_support", "-lapp_update", "-lspi_flash", "-lesp_system", "-lsoc", "-lvfs", "-lesp_eth", "-ltcpip_adapter", "-lesp_netif", "-lesp_event", "-lwpa_supplicant", "-lnvs_flash", "-lesp_wifi", "-llwip", "-llog", "-lheap", "-lesp_ringbuf", "-ldriver", "-lpthread", "-lespcoredump", "-lesp32s2", "-lesp_common", "-lesp_timer", "-lfreertos", "-lnewlib", "-lcxx", "-lapp_trace", "-lasio", "-lcbor", "-lcoap", "-lconsole", "-lnghttp", "-lesp-tls", "-lesp_gdbstub", "-lesp_hid", "-ltcp_transport", "-lesp_http_client", "-lesp_http_server", "-lesp_https_ota", "-lesp_https_server", "-lprotobuf-c", "-lprotocomm", "-lmdns", "-lesp_local_ctrl", "-lsdmmc", "-lesp_serial_slave_link", "-lesp_websocket_client", "-lexpat", "-lwear_levelling", "-lfatfs", "-lfreemodbus", "-ljsmn", "-ljson", "-llibsodium", "-lmqtt", "-lopenssl", "-lperfmon", "-lspiffs", "-lulp", "-lunity", "-lwifi_provisioning", "-lfb_gfx", "-lasio", "-lcbor", "-lcoap", "-lesp_gdbstub", "-lesp_hid", "-lesp_https_ota", "-lesp_local_ctrl", "-lesp_https_server", "-lesp_serial_slave_link", "-lesp_websocket_client", "-lexpat", "-lfreemodbus", "-ljsmn", "-llibsodium", "-lmqtt", "-lperfmon", "-lunity", "-lwifi_provisioning", "-lprotocomm", "-lprotobuf-c", "-ljson", "-lfb_gfx", "-lmdns", "-lconsole", "-lfatfs", "-lsdmmc", "-lwear_levelling", "-lopenssl", "-lspiffs", "-lxtensa", "-lmbedtls", "-lefuse", "-lbootloader_support", "-lapp_update", "-lspi_flash", "-lesp_system", "-lsoc", "-lvfs", "-lesp_eth", "-ltcpip_adapter", "-lesp_netif", "-lesp_event", "-lwpa_supplicant", "-lnvs_flash", "-lesp_wifi", "-llwip", "-llog", "-lheap", "-lesp_ringbuf", "-ldriver", "-lpthread", "-lespcoredump", "-lesp32s2", "-lesp_common", "-lesp_timer", "-lfreertos", "-lnewlib", "-lcxx", "-lapp_trace", "-lnghttp", "-lesp-tls", "-ltcp_transport", "-lesp_http_client", "-lesp_http_server", "-lulp", "-lmbedtls", "-lmbedcrypto", "-lmbedx509", "-lsoc_esp32s2", "-lcoexist", "-lcore", "-lespnow", "-lmesh", "-lnet80211", "-lpp", "-lrtc", "-lsmartconfig", "-lphy", "-lxtensa", "-lmbedtls", "-lefuse", "-lbootloader_support", "-lapp_update", "-lspi_flash", "-lesp_system", "-lsoc", "-lvfs", "-lesp_eth", "-ltcpip_adapter", "-lesp_netif", "-lesp_event", "-lwpa_supplicant", "-lnvs_flash", "-lesp_wifi", "-llwip", "-llog", "-lheap", "-lesp_ringbuf", "-ldriver", "-lpthread", "-lespcoredump", "-lesp32s2", "-lesp_common", "-lesp_timer", "-lfreertos", "-lnewlib", "-lcxx", "-lapp_trace", "-lnghttp", "-lesp-tls", "-ltcp_transport", "-lesp_http_client", "-lesp_http_server", "-lulp", "-lmbedtls", "-lmbedcrypto", "-lmbedx509", "-lsoc_esp32s2", "-lcoexist", "-lcore", "-lespnow", "-lmesh", "-lnet80211", "-lpp", "-lrtc", "-lsmartconfig", "-lphy", "-lxtensa", "-lmbedtls", "-lefuse", "-lbootloader_support", "-lapp_update", "-lspi_flash", "-lesp_system", "-lsoc", "-lvfs", "-lesp_eth", "-ltcpip_adapter", "-lesp_netif", "-lesp_event", "-lwpa_supplicant", "-lnvs_flash", "-lesp_wifi", "-llwip", "-llog", "-lheap", "-lesp_ringbuf", "-ldriver", "-lpthread", "-lespcoredump", "-lesp32s2", "-lesp_common", "-lesp_timer", "-lfreertos", "-lnewlib", "-lcxx", "-lapp_trace", "-lnghttp", "-lesp-tls", "-ltcp_transport", "-lesp_http_client", "-lesp_http_server", "-lulp", "-lmbedtls", "-lmbedcrypto", "-lmbedx509", "-lsoc_esp32s2", "-lcoexist", "-lcore", "-lespnow", "-lmesh", "-lnet80211", "-lpp", "-lrtc", "-lsmartconfig", "-lphy", "-lxtensa", "-lmbedtls", "-lefuse", "-lbootloader_support", "-lapp_update", "-lspi_flash", "-lesp_system", "-lsoc", "-lvfs", "-lesp_eth", "-ltcpip_adapter", "-lesp_netif", "-lesp_event", "-lwpa_supplicant", "-lnvs_flash", "-lesp_wifi", "-llwip", "-llog", "-lheap", "-lesp_ringbuf", "-ldriver", "-lpthread", "-lespcoredump", "-lesp32s2", "-lesp_common", "-lesp_timer", "-lfreertos", "-lnewlib", "-lcxx", "-lapp_trace", "-lnghttp", "-lesp-tls", "-ltcp_transport", "-lesp_http_client", "-lesp_http_server", "-lulp", "-lmbedtls", "-lmbedcrypto", "-lmbedx509", "-lsoc_esp32s2", "-lcoexist", "-lcore", "-lespnow", "-lmesh", "-lnet80211", "-lpp", "-lrtc", "-lsmartconfig", "-lphy", "-lhal", "-lm", "-lnewlib", "-lgcc", "-lstdc++", "-lpthread", "-lapp_trace", "-lgcov", "-lapp_trace", "-lgcov", "-lc"
209216
],
210217

211218
CPPDEFINES=[
@@ -214,8 +221,9 @@
214221
"UNITY_INCLUDE_CONFIG_H",
215222
"WITH_POSIX",
216223
"_GNU_SOURCE",
217-
("IDF_VER", '\\"v4.2-dev-1575-ga3520970f\\"'),
224+
("IDF_VER", '\\"v4.2-dev-1660-g7d7521367\\"'),
218225
"ESP_PLATFORM",
226+
("CFG_TUSB_MCU", 'OPT_MCU_ESP32_S2'),
219227
"ARDUINO_ARCH_ESP32",
220228
"ESP32",
221229
("F_CPU", "$BOARD_F_CPU"),
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

tools/sdk/esp32/include/esp-tls/esp_tls.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ extern "C" {
6464
#define ESP_ERR_WOLFSSL_SSL_SETUP_FAILED (ESP_ERR_ESP_TLS_BASE + 0x19) /*!< wolfSSL api returned failed */
6565
#define ESP_ERR_WOLFSSL_SSL_WRITE_FAILED (ESP_ERR_ESP_TLS_BASE + 0x1A) /*!< wolfSSL api returned failed */
6666

67+
#define ESP_ERR_ESP_TLS_SE_FAILED (ESP_ERR_ESP_TLS_BASE + 0x1B) /*< esp-tls use Secure Element returned failed */
6768
#ifdef CONFIG_ESP_TLS_USING_MBEDTLS
6869
#define ESP_TLS_ERR_SSL_WANT_READ MBEDTLS_ERR_SSL_WANT_READ
6970
#define ESP_TLS_ERR_SSL_WANT_WRITE MBEDTLS_ERR_SSL_WANT_WRITE
@@ -183,6 +184,9 @@ typedef struct esp_tls_cfg {
183184
underneath socket will be configured in non
184185
blocking mode after tls session is established */
185186

187+
bool use_secure_element; /*!< Enable this option to use secure element or
188+
atecc608a chip ( Integrated with ESP32-WROOM-32SE ) */
189+
186190
int timeout_ms; /*!< Network timeout in milliseconds */
187191

188192
bool use_global_ca_store; /*!< Use a global ca_store for all the connections in which

tools/sdk/esp32/include/esp_wifi/include/esp_mesh.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ extern "C" {
128128
#define ESP_ERR_MESH_XMIT (ESP_ERR_MESH_BASE + 23) /**< XMIT */
129129
#define ESP_ERR_MESH_QUEUE_READ (ESP_ERR_MESH_BASE + 24) /**< error in reading queue */
130130
#define ESP_ERR_MESH_PS (ESP_ERR_MESH_BASE + 25) /**< mesh PS is not specified as enable or disable */
131+
#define ESP_ERR_MESH_RECV_RELEASE (ESP_ERR_MESH_BASE + 26) /**< release esp_mesh_recv_toDS */
131132

132133
/**
133134
* @brief Flags bitmap for esp_mesh_send() and esp_mesh_recv()
@@ -225,6 +226,7 @@ typedef enum {
225226
MESH_ROOT, /**< the only sink of the mesh network. Has the ability to access external IP network */
226227
MESH_NODE, /**< intermediate device. Has the ability to forward packets over the mesh network */
227228
MESH_LEAF, /**< has no forwarding ability */
229+
MESH_STA, /**< connect to router with a standlone Wi-Fi station mode, no network expansion capability */
228230
} mesh_type_t;
229231

230232
/**
@@ -753,6 +755,7 @@ esp_err_t esp_mesh_recv(mesh_addr_t *from, mesh_data_t *data, int timeout_ms,
753755
* - ESP_ERR_MESH_NOT_START
754756
* - ESP_ERR_MESH_TIMEOUT
755757
* - ESP_ERR_MESH_DISCARD
758+
* - ESP_ERR_MESH_RECV_RELEASE
756759
*/
757760
esp_err_t esp_mesh_recv_toDS(mesh_addr_t *from, mesh_addr_t *to,
758761
mesh_data_t *data, int timeout_ms, int *flag, mesh_opt_t opt[],
@@ -848,8 +851,10 @@ esp_err_t esp_mesh_get_id(mesh_addr_t *id);
848851

849852
/**
850853
* @brief Designate device type over the mesh network
854+
* - MESH_IDLE: designates a device as a self-organized node for a mesh network
851855
* - MESH_ROOT: designates the root node for a mesh network
852-
* - MESH_LEAF: designates a device as a standalone Wi-Fi station
856+
* - MESH_LEAF: designates a device as a standalone Wi-Fi station that connects to a parent
857+
* - MESH_STA: designates a device as a standalone Wi-Fi station that connects to a router
853858
*
854859
* @param[in] type device type
855860
*
@@ -1356,6 +1361,7 @@ bool esp_mesh_is_root_fixed(void);
13561361
* @param[in] parent_mesh_id parent mesh ID,
13571362
* - If this value is not set, the original mesh ID is used.
13581363
* @param[in] my_type mesh type
1364+
* - MESH_STA is not supported.
13591365
* - If the parent set for the device is the same as the router in the network configuration,
13601366
* then my_type shall set MESH_ROOT and my_layer shall set MESH_ROOT_LAYER.
13611367
* @param[in] my_layer mesh layer

tools/sdk/esp32/include/esp_wifi/include/esp_wifi.h

Lines changed: 38 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -879,28 +879,59 @@ esp_err_t esp_wifi_set_vendor_ie(bool enable, wifi_vendor_ie_type_t type, wifi_v
879879
esp_err_t esp_wifi_set_vendor_ie_cb(esp_vendor_ie_cb_t cb, void *ctx);
880880

881881
/**
882-
* @brief Set maximum WiFi transmitting power
883-
*
884-
* @param power Maximum WiFi transmitting power, unit is 0.25dBm, range is [40, 82] corresponding to 10dBm - 20.5dBm here.
882+
* @brief Set maximum transmitting power after WiFi start.
883+
*
884+
* @attention 1. Maximum power before wifi startup is limited by PHY init data bin.
885+
* @attention 2. The value set by this API will be mapped to the max_tx_power of the structure wifi_country_t variable.
886+
* @attention 3. Mapping Table {Power, max_tx_power} = {{8, 2}, {20, 5}, {28, 7}, {34, 8}, {44, 11},
887+
* {52, 13}, {56, 14}, {60, 15}, {66, 16}, {72, 18}, {78, 20}}.
888+
* @attention 4. Param power unit is 0.25dBm, range is [8, 78] corresponding to 2dBm - 20dBm.
889+
* @attention 5. Relationship between set value and actual value. As follows:
890+
* +------------+--------------+
891+
* | set value | actual value |
892+
* +============+==============+
893+
* | [8, 19] | 8 |
894+
* +------------+--------------+
895+
* | [20, 27] | 20 |
896+
* +------------+--------------+
897+
* | [28, 33] | 28 |
898+
* +------------+--------------+
899+
* | [34, 43] | 34 |
900+
* +------------+--------------+
901+
* | [44, 51] | 44 |
902+
* +------------+--------------+
903+
* | [52, 55] | 52 |
904+
* +------------+--------------+
905+
* | [56, 59] | 56 |
906+
* +------------+--------------+
907+
* | [60, 65] | 60 |
908+
* +------------+--------------+
909+
* | [66, 71] | 66 |
910+
* +------------+--------------+
911+
* | [72, 77] | 72 |
912+
* +------------+--------------+
913+
* | 78 | 78 |
914+
* +------------+--------------+
915+
* @param power Maximum WiFi transmitting power.
885916
*
886917
* @return
887918
* - ESP_OK: succeed
888919
* - ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
889920
* - ESP_ERR_WIFI_NOT_START: WiFi is not started by esp_wifi_start
890-
* - ESP_ERR_WIFI_NOT_ARG: invalid argument
921+
* - ESP_ERR_WIFI_ARG: invalid argument, e.g. parameter is out of range
891922
*/
892923
esp_err_t esp_wifi_set_max_tx_power(int8_t power);
893924

894925
/**
895-
* @brief Get maximum WiFi transmiting power
926+
* @brief Get maximum transmiting power after WiFi start
896927
*
897-
* @param power Maximum WiFi transmitting power, unit is 0.25dBm.
928+
* @param power Maximum WiFi transmitting power, unit is 0.25dBm.
898929
*
899930
* @return
900931
* - ESP_OK: succeed
901932
* - ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
902933
* - ESP_ERR_WIFI_NOT_START: WiFi is not started by esp_wifi_start
903-
* - ESP_ERR_INVALID_ARG: invalid argument
934+
* - ESP_ERR_WIFI_ARG: invalid argument
904935
*/
905936
esp_err_t esp_wifi_get_max_tx_power(int8_t *power);
906937

0 commit comments

Comments
 (0)