Skip to content

Commit 475208e

Browse files
author
me-no-dev
committed
IDF release/v4.0 48ea44f3d
1 parent 2bf655b commit 475208e

Some content is hidden

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

88 files changed

+82
-30
lines changed

platform.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ compiler.S.flags=-c -g3 -x assembler-with-cpp -MMD -mlongcalls
3535

3636
compiler.c.elf.cmd=xtensa-esp32-elf-gcc
3737
compiler.c.elf.flags=-nostdlib "-L{compiler.sdk.path}/lib" "-L{compiler.sdk.path}/ld" -T esp32_out.ld -T esp32.project.ld -T esp32.peripherals.ld -T esp32.rom.ld -T esp32.rom.libgcc.ld -T esp32.rom.syscalls.ld -T esp32.rom.newlib-data.ld -Wl,--gc-sections -Wl,-static -Wl,--undefined=uxTopUsedPriority -u call_user_start_cpu0 -u __cxa_guard_dummy -u ld_include_panic_highint_hdl -u newlib_include_locks_impl -u newlib_include_heap_impl -u newlib_include_syscalls_impl -u pthread_include_pthread_impl -u pthread_include_pthread_cond_impl -u pthread_include_pthread_local_storage_impl -fno-rtti -mfix-esp32-psram-cache-issue
38-
compiler.c.elf.libs=-lgcc -lesp_ringbuf -lfatfs -lcore -lesp_websocket_client -lspiffs -lconsole -lbtdm_app -lnet80211 -lfd -lasio -lheap -lvfs -ljson -lesp_http_client -lesp_event -lnewlib -lesp_gdbstub -lapp_update -llog -lesp32 -lesp_rom -lesp_eth -lfb_gfx -lod -lcoap -lsdmmc -lface_detection -limage_util -lphy -lopenssl -lesp_adc_cal -lface_recognition -lprotocomm -llwip -lspi_flash -lxtensa -ltcp_transport -ldl -lesp_wifi -lwear_levelling -lpp -lfr -lpthread -lrtc -lcoexist -lsmartconfig -lbootloader_support -lwpa_supplicant -lsoc -lefuse -lmqtt -lwifi_provisioning -lfreemodbus -lunity -lesp_https_ota -lcxx -lmdns -lbt -lhal -lespcoredump -ltcpip_adapter -lesp_common -lfreertos -lesp_local_ctrl -llibsodium -lexpat -lmesh -lespnow -lnvs_flash -lesp32-camera -lprotobuf-c -lnghttp -lapp_trace -ljsmn -ldriver -lm -lulp -lmbedtls -lesp-tls -lesp_http_server -lc -lstdc++
38+
compiler.c.elf.libs=-lgcc -lcoexist -lheap -lpthread -lnvs_flash -lapp_update -lbtdm_app -lwifi_provisioning -lmesh -lm -lesp_websocket_client -lspiffs -lnghttp -lespnow -lsoc -lmbedtls -lface_detection -lface_recognition -lprotocomm -lmdns -lconsole -lbt -lesp_rom -lfreemodbus -lfb_gfx -lsdmmc -lfr -lcoap -lfd -lnet80211 -lcore -lexpat -lbootloader_support -lesp_gdbstub -lrtc -lesp_ringbuf -lasio -lxtensa -lspi_flash -lesp_adc_cal -ldl -lesp_common -lphy -lesp_eth -ljson -lesp_http_server -lwear_levelling -lesp32 -ljsmn -llibsodium -lcxx -lvfs -lpp -llog -lulp -lod -lunity -ldriver -lfreertos -lesp_http_client -lespcoredump -lopenssl -limage_util -lesp_https_ota -lwpa_supplicant -lmqtt -lhal -ltcpip_adapter -lesp_event -ltcp_transport -llwip -lesp-tls -lesp_wifi -lesp32-camera -lapp_trace -lesp_local_ctrl -lefuse -lnewlib -lsmartconfig -lfatfs -lprotobuf-c -lc -lstdc++
3939

4040
compiler.as.cmd=xtensa-esp32-elf-as
4141

tools/platformio-build.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
],
187187

188188
LIBS=[
189-
"-lgcc", "-lesp_ringbuf", "-lfatfs", "-lcore", "-lesp_websocket_client", "-lspiffs", "-lconsole", "-lbtdm_app", "-lnet80211", "-lfd", "-lasio", "-lheap", "-lvfs", "-ljson", "-lesp_http_client", "-lesp_event", "-lnewlib", "-lesp_gdbstub", "-lapp_update", "-llog", "-lesp32", "-lesp_rom", "-lesp_eth", "-lfb_gfx", "-lod", "-lcoap", "-lsdmmc", "-lface_detection", "-limage_util", "-lphy", "-lopenssl", "-lesp_adc_cal", "-lface_recognition", "-lprotocomm", "-llwip", "-lspi_flash", "-lxtensa", "-ltcp_transport", "-ldl", "-lesp_wifi", "-lwear_levelling", "-lpp", "-lfr", "-lpthread", "-lrtc", "-lcoexist", "-lsmartconfig", "-lbootloader_support", "-lwpa_supplicant", "-lsoc", "-lefuse", "-lmqtt", "-lwifi_provisioning", "-lfreemodbus", "-lunity", "-lesp_https_ota", "-lcxx", "-lmdns", "-lbt", "-lhal", "-lespcoredump", "-ltcpip_adapter", "-lesp_common", "-lfreertos", "-lesp_local_ctrl", "-llibsodium", "-lexpat", "-lmesh", "-lespnow", "-lnvs_flash", "-lesp32-camera", "-lprotobuf-c", "-lnghttp", "-lapp_trace", "-ljsmn", "-ldriver", "-lm", "-lulp", "-lmbedtls", "-lesp-tls", "-lesp_http_server", "-lc", "-lstdc++"
189+
"-lgcc", "-lcoexist", "-lheap", "-lpthread", "-lnvs_flash", "-lapp_update", "-lbtdm_app", "-lwifi_provisioning", "-lmesh", "-lm", "-lesp_websocket_client", "-lspiffs", "-lnghttp", "-lespnow", "-lsoc", "-lmbedtls", "-lface_detection", "-lface_recognition", "-lprotocomm", "-lmdns", "-lconsole", "-lbt", "-lesp_rom", "-lfreemodbus", "-lfb_gfx", "-lsdmmc", "-lfr", "-lcoap", "-lfd", "-lnet80211", "-lcore", "-lexpat", "-lbootloader_support", "-lesp_gdbstub", "-lrtc", "-lesp_ringbuf", "-lasio", "-lxtensa", "-lspi_flash", "-lesp_adc_cal", "-ldl", "-lesp_common", "-lphy", "-lesp_eth", "-ljson", "-lesp_http_server", "-lwear_levelling", "-lesp32", "-ljsmn", "-llibsodium", "-lcxx", "-lvfs", "-lpp", "-llog", "-lulp", "-lod", "-lunity", "-ldriver", "-lfreertos", "-lesp_http_client", "-lespcoredump", "-lopenssl", "-limage_util", "-lesp_https_ota", "-lwpa_supplicant", "-lmqtt", "-lhal", "-ltcpip_adapter", "-lesp_event", "-ltcp_transport", "-llwip", "-lesp-tls", "-lesp_wifi", "-lesp32-camera", "-lapp_trace", "-lesp_local_ctrl", "-lefuse", "-lnewlib", "-lsmartconfig", "-lfatfs", "-lprotobuf-c", "-lc", "-lstdc++"
190190
],
191191

192192
LIBSOURCE_DIRS=[

tools/sdk/include/bt/esp_blufi_api.h

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ typedef enum {
8383
ESP_BLUFI_DH_PARAM_ERROR,
8484
ESP_BLUFI_READ_PARAM_ERROR,
8585
ESP_BLUFI_MAKE_PUBLIC_ERROR,
86+
ESP_BLUFI_DATA_FORMAT_ERROR,
8687
} esp_blufi_error_state_t;
8788

8889
/**

tools/sdk/include/bt/esp_bt.h

+9-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
extern "C" {
2626
#endif
2727

28-
#define ESP_BT_CONTROLLER_CONFIG_MAGIC_VAL 0x20200106
28+
#define ESP_BT_CONTROLLER_CONFIG_MAGIC_VAL 0x20200611
2929

3030
/**
3131
* @brief Bluetooth mode for controller enable/disable
@@ -117,6 +117,12 @@ the adv packet will be discarded until the memory is restored. */
117117
#define BTDM_CTRL_AUTO_LATENCY_EFF false
118118
#endif
119119

120+
#ifdef CONFIG_BTDM_CTRL_LEGACY_AUTH_VENDOR_EVT_EFF
121+
#define BTDM_CTRL_LEGACY_AUTH_VENDOR_EVT_EFF CONFIG_BTDM_CTRL_LEGACY_AUTH_VENDOR_EVT_EFF
122+
#else
123+
#define BTDM_CTRL_LEGACY_AUTH_VENDOR_EVT_EFF false
124+
#endif
125+
120126
#define BTDM_CONTROLLER_BLE_MAX_CONN_LIMIT 9 //Maximum BLE connection limitation
121127
#define BTDM_CONTROLLER_BR_EDR_MAX_ACL_CONN_LIMIT 7 //Maximum ACL connection limitation
122128
#define BTDM_CONTROLLER_BR_EDR_MAX_SYNC_CONN_LIMIT 3 //Maximum SCO/eSCO connection limitation
@@ -140,6 +146,7 @@ the adv packet will be discarded until the memory is restored. */
140146
.bt_max_acl_conn = CONFIG_BTDM_CTRL_BR_EDR_MAX_ACL_CONN_EFF, \
141147
.bt_sco_datapath = CONFIG_BTDM_CTRL_BR_EDR_SCO_DATA_PATH_EFF, \
142148
.auto_latency = BTDM_CTRL_AUTO_LATENCY_EFF, \
149+
.bt_legacy_auth_vs_evt = BTDM_CTRL_LEGACY_AUTH_VENDOR_EVT_EFF, \
143150
.bt_max_sync_conn = CONFIG_BTDM_CTRL_BR_EDR_MAX_SYNC_CONN_EFF, \
144151
.ble_sca = CONFIG_BTDM_BLE_SLEEP_CLOCK_ACCURACY_INDEX_EFF, \
145152
.magic = ESP_BT_CONTROLLER_CONFIG_MAGIC_VAL, \
@@ -173,6 +180,7 @@ typedef struct {
173180
uint8_t bt_max_acl_conn; /*!< BR/EDR maximum ACL connection numbers */
174181
uint8_t bt_sco_datapath; /*!< SCO data path, i.e. HCI or PCM module */
175182
bool auto_latency; /*!< BLE auto latency, used to enhance classic BT performance */
183+
bool bt_legacy_auth_vs_evt; /*!< BR/EDR Legacy auth complete event required to protect from BIAS attack */
176184
/*
177185
* Following parameters can not be configured runtime when call esp_bt_controller_init()
178186
* It will be overwrite with a constant value which in menuconfig or from a macro.

tools/sdk/include/bt/esp_gap_bt_api.h

+11-8
Original file line numberDiff line numberDiff line change
@@ -405,13 +405,15 @@ esp_err_t esp_bt_gap_register_callback(esp_bt_gap_cb_t callback);
405405
esp_err_t esp_bt_gap_set_scan_mode(esp_bt_connection_mode_t c_mode, esp_bt_discovery_mode_t d_mode);
406406

407407
/**
408-
* @brief Start device discovery. This function should be called after esp_bluedroid_enable() completes successfully.
409-
* esp_bt_gap_cb_t will be called with ESP_BT_GAP_DISC_STATE_CHANGED_EVT if discovery is started or halted.
410-
* esp_bt_gap_cb_t will be called with ESP_BT_GAP_DISC_RES_EVT if discovery result is got.
408+
* @brief This function starts Inquiry and Name Discovery. It should be called after esp_bluedroid_enable() completes successfully.
409+
* When Inquiry is halted and cached results do not contain device name, then Name Discovery will connect to the peer target to get the device name.
410+
* esp_bt_gap_cb_t will be called with ESP_BT_GAP_DISC_STATE_CHANGED_EVT when Inquriry is started or Name Discovery is completed.
411+
* esp_bt_gap_cb_t will be called with ESP_BT_GAP_DISC_RES_EVT each time the two types of discovery results are got.
411412
*
412-
* @param[in] mode - inquiry mode
413-
* @param[in] inq_len - inquiry duration in 1.28 sec units, ranging from 0x01 to 0x30
414-
* @param[in] num_rsps - number of inquiry responses that can be received, value 0 indicates an unlimited number of responses
413+
* @param[in] mode - Inquiry mode
414+
* @param[in] inq_len - Inquiry duration in 1.28 sec units, ranging from 0x01 to 0x30. This parameter only specifies the total duration of the Inquiry process,
415+
* - when this time expires, Inquiry will be halted.
416+
* @param[in] num_rsps - Number of responses that can be received before the Inquiry is halted, value 0 indicates an unlimited number of responses.
415417
*
416418
* @return
417419
* - ESP_OK : Succeed
@@ -422,8 +424,9 @@ esp_err_t esp_bt_gap_set_scan_mode(esp_bt_connection_mode_t c_mode, esp_bt_disco
422424
esp_err_t esp_bt_gap_start_discovery(esp_bt_inq_mode_t mode, uint8_t inq_len, uint8_t num_rsps);
423425

424426
/**
425-
* @brief Cancel device discovery. This function should be called after esp_bluedroid_enable() completes successfully
426-
* esp_bt_gap_cb_t will be called with ESP_BT_GAP_DISC_STATE_CHANGED_EVT if discovery is stopped.
427+
* @brief Cancel Inquiry and Name Discovery. This function should be called after esp_bluedroid_enable() completes successfully.
428+
* esp_bt_gap_cb_t will be called with ESP_BT_GAP_DISC_STATE_CHANGED_EVT if Inquiry or Name Discovery is cancelled by
429+
* calling this function.
427430
*
428431
* @return
429432
* - ESP_OK : Succeed

tools/sdk/include/bt/esp_gatt_common_api.h

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ extern esp_err_t esp_ble_gatt_set_local_mtu (uint16_t mtu);
4646

4747
#if (BLE_INCLUDED == TRUE)
4848
extern uint16_t esp_ble_get_sendable_packets_num (void);
49+
extern uint16_t esp_ble_get_cur_sendable_packets_num (uint16_t connid);
4950
#endif
5051

5152
#ifdef __cplusplus

tools/sdk/include/bt/esp_gatts_api.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ esp_err_t esp_ble_gatts_app_unregister(esp_gatt_if_t gatts_if);
326326

327327
/**
328328
* @brief Create a service. When service creation is done, a callback
329-
* event BTA_GATTS_CREATE_SRVC_EVT is called to report status
329+
* event ESP_GATTS_CREATE_EVT is called to report status
330330
* and service ID to the profile. The service ID obtained in
331331
* the callback function needs to be used when adding included
332332
* service and characteristics/descriptors into the service.
@@ -363,7 +363,7 @@ esp_err_t esp_ble_gatts_create_attr_tab(const esp_gatts_attr_db_t *gatts_attr_db
363363
/**
364364
* @brief This function is called to add an included service. This function have to be called between
365365
* 'esp_ble_gatts_create_service' and 'esp_ble_gatts_add_char'. After included
366-
* service is included, a callback event BTA_GATTS_ADD_INCL_SRVC_EVT
366+
* service is included, a callback event ESP_GATTS_ADD_INCL_SRVC_EVT
367367
* is reported the included service ID.
368368
*
369369
* @param[in] service_handle: service handle to which this included service is to
@@ -402,7 +402,7 @@ esp_err_t esp_ble_gatts_add_char(uint16_t service_handle, esp_bt_uuid_t *char_
402402

403403
/**
404404
* @brief This function is called to add characteristic descriptor. When
405-
* it's done, a callback event BTA_GATTS_ADD_DESCR_EVT is called
405+
* it's done, a callback event ESP_GATTS_ADD_DESCR_EVT is called
406406
* to report the status and an ID number for this descriptor.
407407
*
408408
* @param[in] service_handle: service handle to which this characteristic descriptor is to
@@ -425,7 +425,7 @@ esp_err_t esp_ble_gatts_add_char_descr (uint16_t service_handle,
425425

426426
/**
427427
* @brief This function is called to delete a service. When this is done,
428-
* a callback event BTA_GATTS_DELETE_EVT is report with the status.
428+
* a callback event ESP_GATTS_DELETE_EVT is report with the status.
429429
*
430430
* @param[in] service_handle: service_handle to be deleted.
431431
*

tools/sdk/include/config/sdkconfig.h

+9-1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@
6969
#define CONFIG_BTDM_CTRL_BR_EDR_MAX_SYNC_CONN 0
7070
#define CONFIG_BTDM_CTRL_BR_EDR_SCO_DATA_PATH_PCM 1
7171
#define CONFIG_BTDM_CTRL_BR_EDR_SCO_DATA_PATH_EFF 1
72+
#define CONFIG_BTDM_CTRL_LEGACY_AUTH_VENDOR_EVT 1
73+
#define CONFIG_BTDM_CTRL_LEGACY_AUTH_VENDOR_EVT_EFF 1
7274
#define CONFIG_BTDM_CTRL_BLE_MAX_CONN_EFF 3
7375
#define CONFIG_BTDM_CTRL_BR_EDR_MAX_ACL_CONN_EFF 2
7476
#define CONFIG_BTDM_CTRL_BR_EDR_MAX_SYNC_CONN_EFF 0
@@ -122,6 +124,7 @@
122124
#define CONFIG_MTMN_LITE_QUANT 1
123125
#define CONFIG_MFN56_1X 1
124126
#define CONFIG_LSSH_SPARSE_MN_5 1
127+
#define CONFIG_ESP32_ECO3_CACHE_LOCK_FIX 1
125128
#define CONFIG_ESP32_REV_MIN_0 1
126129
#define CONFIG_ESP32_REV_MIN 0
127130
#define CONFIG_ESP32_DPORT_WORKAROUND 1
@@ -293,6 +296,7 @@
293296
#define CONFIG_LWIP_TCP_RECVMBOX_SIZE 6
294297
#define CONFIG_LWIP_TCP_QUEUE_OOSEQ 1
295298
#define CONFIG_LWIP_TCP_OVERSIZE_MSS 1
299+
#define CONFIG_LWIP_TCP_RTO_TIME 3000
296300
#define CONFIG_LWIP_MAX_UDP_PCBS 16
297301
#define CONFIG_LWIP_UDP_RECVMBOX_SIZE 6
298302
#define CONFIG_LWIP_TCPIP_TASK_STACK_SIZE 2560
@@ -613,6 +617,10 @@
613617
#define CONFIG_BLE_HOST_QUEUE_CONGESTION_CHECK CONFIG_BT_BLE_HOST_QUEUE_CONG_CHECK
614618
#endif
615619

620+
#ifdef CONFIG_BLE_MESH_MEM_ALLOC_MODE_EXTERNAL
621+
#define CONFIG_BLE_MESH_ALLOC_FROM_PSRAM_FIRST CONFIG_BLE_MESH_MEM_ALLOC_MODE_EXTERNAL
622+
#endif
623+
616624
#ifdef CONFIG_BLE_MESH_GATT_PROXY_SERVER
617625
#define CONFIG_BLE_MESH_GATT_PROXY CONFIG_BLE_MESH_GATT_PROXY_SERVER
618626
#endif
@@ -2189,5 +2197,5 @@
21892197
#define CONFIG_WIFI_LWIP_ALLOCATION_FROM_SPIRAM_FIRST CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP
21902198
#endif
21912199

2192-
#define CONFIG_ARDUINO_IDF_COMMIT "94d97499a"
2200+
#define CONFIG_ARDUINO_IDF_COMMIT "48ea44f3d"
21932201
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.0"

tools/sdk/include/efuse/esp_efuse.h

+5
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,11 @@ esp_err_t esp_efuse_update_secure_version(uint32_t secure_version);
355355
*/
356356
void esp_efuse_init(uint32_t offset, uint32_t size);
357357

358+
inline static bool soc_has_cache_lock_bug(void)
359+
{
360+
return (esp_efuse_get_chip_ver() == 3);
361+
}
362+
358363
#ifdef __cplusplus
359364
}
360365
#endif

tools/sdk/include/esp32/esp_sleep.h

+5-10
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,8 @@ esp_err_t esp_sleep_disable_wakeup_source(esp_sleep_source_t source);
8989

9090
/**
9191
* @brief Enable wakeup by ULP coprocessor
92-
* @note In revisions 0 and 1 of the ESP32, ULP wakeup source
93-
* can not be used when RTC_PERIPH power domain is forced
94-
* to be powered on (ESP_PD_OPTION_ON) or when ext0 wakeup
95-
* source is used.
92+
* @note ULP wakeup source cannot be used when RTC_PERIPH power domain is forced
93+
* to be powered on (ESP_PD_OPTION_ON) or when ext0 wakeup source is used.
9694
* @return
9795
* - ESP_OK on success
9896
* - ESP_ERR_NOT_SUPPORTED if additional current by touch (CONFIG_ESP32_RTC_EXT_CRYST_ADDIT_CURRENT) is enabled.
@@ -112,8 +110,7 @@ esp_err_t esp_sleep_enable_timer_wakeup(uint64_t time_in_us);
112110
/**
113111
* @brief Enable wakeup by touch sensor
114112
*
115-
* @note In revisions 0 and 1 of the ESP32, touch wakeup source
116-
* can not be used when RTC_PERIPH power domain is forced
113+
* @note Touch wakeup source cannot be used when RTC_PERIPH power domain is forced
117114
* to be powered on (ESP_PD_OPTION_ON) or when ext0 wakeup
118115
* source is used.
119116
*
@@ -148,8 +145,7 @@ touch_pad_t esp_sleep_get_touchpad_wakeup_status();
148145
* @note This function does not modify pin configuration. The pin is
149146
* configured in esp_sleep_start, immediately before entering sleep mode.
150147
*
151-
* @note In revisions 0 and 1 of the ESP32, ext0 wakeup source
152-
* can not be used together with touch or ULP wakeup sources.
148+
* @note ext0 wakeup source cannot be used together with touch or ULP wakeup sources.
153149
*
154150
* @param gpio_num GPIO number used as wakeup source. Only GPIOs which are have RTC
155151
* functionality can be used: 0,2,4,12-15,25-27,32-39.
@@ -206,8 +202,7 @@ esp_err_t esp_sleep_enable_ext1_wakeup(uint64_t mask, esp_sleep_ext1_wakeup_mode
206202
* wakeup level, for each GPIO which is used for wakeup.
207203
* Then call this function to enable wakeup feature.
208204
*
209-
* @note In revisions 0 and 1 of the ESP32, GPIO wakeup source
210-
* can not be used together with touch or ULP wakeup sources.
205+
* @note GPIO wakeup source cannot be used together with touch or ULP wakeup sources.
211206
*
212207
* @return
213208
* - ESP_OK on success

tools/sdk/include/esp_common/esp_system.h

+10
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,16 @@ esp_reset_reason_t esp_reset_reason(void);
113113
*/
114114
uint32_t esp_get_free_heap_size(void);
115115

116+
/**
117+
* @brief Get the size of available internal heap.
118+
*
119+
* Note that the returned value may be larger than the maximum contiguous block
120+
* which can be allocated.
121+
*
122+
* @return Available internal heap size, in bytes.
123+
*/
124+
uint32_t esp_get_free_internal_heap_size(void);
125+
116126
/**
117127
* @brief Get the minimum heap that has ever been available
118128
*

tools/sdk/include/esp_wifi/esp_wifi_types.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ typedef enum {
9494
WIFI_REASON_ASSOC_FAIL = 203,
9595
WIFI_REASON_HANDSHAKE_TIMEOUT = 204,
9696
WIFI_REASON_CONNECTION_FAIL = 205,
97-
WIFI_REASON_AUTH_CHANGED = 206,
97+
WIFI_REASON_AP_TSF_RESET = 206,
9898
} wifi_err_reason_t;
9999

100100
typedef enum {

tools/sdk/include/lwip/lwip/opt.h

+5
Original file line numberDiff line numberDiff line change
@@ -1534,6 +1534,11 @@
15341534
#define LWIP_ALTCP_TLS 0
15351535
#endif
15361536

1537+
#if ESP_LWIP
1538+
#if !defined LWIP_TCP_RTO_TIME || defined __DOXYGEN__
1539+
#define LWIP_TCP_RTO_TIME 3000
1540+
#endif
1541+
#endif
15371542
/**
15381543
* @}
15391544
*/

tools/sdk/include/lwip/lwipopts.h

+6
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,12 @@
376376
#define TCP_RCV_SCALE CONFIG_LWIP_TCP_RCV_SCALE
377377
#endif
378378

379+
/**
380+
* LWIP_TCP_RTO_TIME: TCP rto time.
381+
* Default is 3 second.
382+
*/
383+
#define LWIP_TCP_RTO_TIME CONFIG_LWIP_TCP_RTO_TIME
384+
379385
/*
380386
----------------------------------
381387
---------- Pbuf options ----------

0 commit comments

Comments
 (0)