Skip to content

Commit 43c9bb2

Browse files
committed
IDF release/v4.4 fee50c208a
1 parent 9c95d36 commit 43c9bb2

File tree

283 files changed

+625
-206
lines changed

Some content is hidden

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

283 files changed

+625
-206
lines changed

platform.txt

Lines changed: 4 additions & 4 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
@@ -329,7 +329,7 @@
329329
"UNITY_INCLUDE_CONFIG_H",
330330
"WITH_POSIX",
331331
"_GNU_SOURCE",
332-
("IDF_VER", '\\"v4.4.4-207-g60b90c5144\\"'),
332+
("IDF_VER", '\\"v4.4.4-235-gfee50c208a\\"'),
333333
"ESP_PLATFORM",
334334
"_POSIX_READER_WRITER_LOCKS",
335335
"ARDUINO_ARCH_ESP32",

tools/platformio-build-esp32c3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@
324324
"UNITY_INCLUDE_CONFIG_H",
325325
"WITH_POSIX",
326326
"_GNU_SOURCE",
327-
("IDF_VER", '\\"v4.4.4-207-g60b90c5144\\"'),
327+
("IDF_VER", '\\"v4.4.4-235-gfee50c208a\\"'),
328328
"ESP_PLATFORM",
329329
"_POSIX_READER_WRITER_LOCKS",
330330
"ARDUINO_ARCH_ESP32",

tools/platformio-build-esp32s2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@
310310
"UNITY_INCLUDE_CONFIG_H",
311311
"WITH_POSIX",
312312
"_GNU_SOURCE",
313-
("IDF_VER", '\\"v4.4.4-207-g60b90c5144\\"'),
313+
("IDF_VER", '\\"v4.4.4-235-gfee50c208a\\"'),
314314
"ESP_PLATFORM",
315315
"_POSIX_READER_WRITER_LOCKS",
316316
"ARDUINO_ARCH_ESP32",

tools/platformio-build-esp32s3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@
328328
"UNITY_INCLUDE_CONFIG_H",
329329
"WITH_POSIX",
330330
"_GNU_SOURCE",
331-
("IDF_VER", '\\"v4.4.4-207-g60b90c5144\\"'),
331+
("IDF_VER", '\\"v4.4.4-235-gfee50c208a\\"'),
332332
"ESP_PLATFORM",
333333
"_POSIX_READER_WRITER_LOCKS",
334334
"ARDUINO_ARCH_ESP32",
712 Bytes
Binary file not shown.
708 Bytes
Binary file not shown.
712 Bytes
Binary file not shown.
708 Bytes
Binary file not shown.
712 Bytes
Binary file not shown.
708 Bytes
Binary file not shown.
712 Bytes
Binary file not shown.
708 Bytes
Binary file not shown.

tools/sdk/esp32/dio_qspi/include/sdkconfig.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,11 @@
220220
#define CONFIG_ESP32_ECO3_CACHE_LOCK_FIX 1
221221
#define CONFIG_ESP32_REV_MIN_0 1
222222
#define CONFIG_ESP32_REV_MIN 0
223+
#define CONFIG_ESP32_REV_MIN_FULL 0
224+
#define CONFIG_ESP_REV_MIN_FULL 0
225+
#define CONFIG_ESP32_REV_MAX_FULL_STR_OPT 1
226+
#define CONFIG_ESP32_REV_MAX_FULL 399
227+
#define CONFIG_ESP_REV_MAX_FULL 399
223228
#define CONFIG_ESP32_DPORT_WORKAROUND 1
224229
#define CONFIG_ESP32_DEFAULT_CPU_FREQ_160 1
225230
#define CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ 160
@@ -443,6 +448,7 @@
443448
#define CONFIG_LWIP_DHCP_DISABLE_VENDOR_CLASS_ID 1
444449
#define CONFIG_LWIP_DHCP_RESTORE_LAST_IP 1
445450
#define CONFIG_LWIP_DHCP_OPTIONS_LEN 128
451+
#define CONFIG_LWIP_DHCP_COARSE_TIMER_SECS 1
446452
#define CONFIG_LWIP_DHCPS 1
447453
#define CONFIG_LWIP_DHCPS_LEASE_UNIT 60
448454
#define CONFIG_LWIP_DHCPS_MAX_STATION_NUM 8
@@ -820,5 +826,5 @@
820826
#define CONFIG_ULP_COPROC_ENABLED CONFIG_ESP32_ULP_COPROC_ENABLED
821827
#define CONFIG_ULP_COPROC_RESERVE_MEM CONFIG_ESP32_ULP_COPROC_RESERVE_MEM
822828
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
823-
#define CONFIG_ARDUINO_IDF_COMMIT "60b90c5144"
829+
#define CONFIG_ARDUINO_IDF_COMMIT "fee50c208a"
824830
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.4"
0 Bytes
Binary file not shown.

tools/sdk/esp32/dout_qspi/include/sdkconfig.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,11 @@
220220
#define CONFIG_ESP32_ECO3_CACHE_LOCK_FIX 1
221221
#define CONFIG_ESP32_REV_MIN_0 1
222222
#define CONFIG_ESP32_REV_MIN 0
223+
#define CONFIG_ESP32_REV_MIN_FULL 0
224+
#define CONFIG_ESP_REV_MIN_FULL 0
225+
#define CONFIG_ESP32_REV_MAX_FULL_STR_OPT 1
226+
#define CONFIG_ESP32_REV_MAX_FULL 399
227+
#define CONFIG_ESP_REV_MAX_FULL 399
223228
#define CONFIG_ESP32_DPORT_WORKAROUND 1
224229
#define CONFIG_ESP32_DEFAULT_CPU_FREQ_160 1
225230
#define CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ 160
@@ -443,6 +448,7 @@
443448
#define CONFIG_LWIP_DHCP_DISABLE_VENDOR_CLASS_ID 1
444449
#define CONFIG_LWIP_DHCP_RESTORE_LAST_IP 1
445450
#define CONFIG_LWIP_DHCP_OPTIONS_LEN 128
451+
#define CONFIG_LWIP_DHCP_COARSE_TIMER_SECS 1
446452
#define CONFIG_LWIP_DHCPS 1
447453
#define CONFIG_LWIP_DHCPS_LEASE_UNIT 60
448454
#define CONFIG_LWIP_DHCPS_MAX_STATION_NUM 8
@@ -820,5 +826,5 @@
820826
#define CONFIG_ULP_COPROC_ENABLED CONFIG_ESP32_ULP_COPROC_ENABLED
821827
#define CONFIG_ULP_COPROC_RESERVE_MEM CONFIG_ESP32_ULP_COPROC_RESERVE_MEM
822828
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
823-
#define CONFIG_ARDUINO_IDF_COMMIT "60b90c5144"
829+
#define CONFIG_ARDUINO_IDF_COMMIT "fee50c208a"
824830
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.4"
0 Bytes
Binary file not shown.

tools/sdk/esp32/include/bootloader_support/include/esp_app_format.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,15 @@ typedef struct {
7979
* pin and sets this field to 0xEE=disabled) */
8080
uint8_t spi_pin_drv[3]; /*!< Drive settings for the SPI flash pins (read by ROM bootloader) */
8181
esp_chip_id_t chip_id; /*!< Chip identification number */
82-
uint8_t min_chip_rev; /*!< Minimum chip revision supported by image */
83-
uint8_t reserved[8]; /*!< Reserved bytes in additional header space, currently unused */
82+
uint8_t min_chip_rev; /*!< Minimal chip revision supported by image
83+
* After the Major and Minor revision eFuses were introduced into the chips, this field is no longer used.
84+
* But for compatibility reasons, we keep this field and the data in it.
85+
* Use min_chip_rev_full instead.
86+
* The software interprets this as a Major version for most of the chips and as a Minor version for the ESP32-C3.
87+
*/
88+
uint16_t min_chip_rev_full; /*!< Minimal chip revision supported by image, in format: major * 100 + minor */
89+
uint16_t max_chip_rev_full; /*!< Maximal chip revision supported by image, in format: major * 100 + minor */
90+
uint8_t reserved[4]; /*!< Reserved bytes in additional header space, currently unused */
8491
uint8_t hash_appended; /*!< If 1, a SHA256 digest "simple hash" (of the entire image) is appended after the checksum.
8592
* Included in image length. This digest
8693
* is separate to secure boot and only used for detecting corruption.

tools/sdk/esp32/include/bootloader_support/include/esp_secure_boot.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ typedef struct {
200200
*/
201201
esp_err_t esp_secure_boot_verify_ecdsa_signature_block(const esp_secure_boot_sig_block_t *sig_block, const uint8_t *image_digest, uint8_t *verified_digest);
202202

203-
#if !CONFIG_IDF_TARGET_ESP32 || CONFIG_ESP32_REV_MIN_3
203+
#if !CONFIG_IDF_TARGET_ESP32 || CONFIG_ESP32_REV_MIN_FULL >= 300
204204
/**
205205
* @brief Structure to hold public key digests calculated from the signature blocks of a single image.
206206
*
@@ -223,7 +223,7 @@ typedef struct {
223223
*
224224
*/
225225
esp_err_t esp_secure_boot_verify_rsa_signature_block(const ets_secure_boot_signature_t *sig_block, const uint8_t *image_digest, uint8_t *verified_digest);
226-
#endif // !CONFIG_IDF_TARGET_ESP32 || CONFIG_ESP32_REV_MIN_3
226+
#endif // !CONFIG_IDF_TARGET_ESP32 || CONFIG_ESP32_REV_MIN_FULL >= 300
227227

228228
/** @brief Legacy ECDSA verification function
229229
*

tools/sdk/esp32/include/efuse/include/esp_efuse.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ esp_err_t esp_efuse_write_key(esp_efuse_block_t block, esp_efuse_purpose_t purpo
741741
esp_err_t esp_efuse_write_keys(const esp_efuse_purpose_t purposes[], uint8_t keys[][32], unsigned number_of_keys);
742742

743743

744-
#if CONFIG_ESP32_REV_MIN_3 || !CONFIG_IDF_TARGET_ESP32
744+
#if CONFIG_ESP32_REV_MIN_FULL >= 300 || !CONFIG_IDF_TARGET_ESP32
745745
/**
746746
* @brief Read key digests from efuse. Any revoked/missing digests will be marked as NULL
747747
*

tools/sdk/esp32/include/esp_rom/include/esp32/rom/rsa_pss.h

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
1-
// Copyright 2020 Espressif Systems (Shanghai) PTE LTD
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
1+
/*
2+
* SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
146

157
#pragma once
168

179
#include "sdkconfig.h"
18-
#ifdef CONFIG_ESP32_REV_MIN_3
10+
#if CONFIG_ESP32_REV_MIN_FULL >= 300
1911

2012
#include <stdint.h>
2113
#include <stdbool.h>
@@ -47,4 +39,4 @@ bool ets_emsa_pss_verify(const uint8_t *encoded_message, const uint8_t *mhash, u
4739
}
4840
#endif
4941

50-
#endif // CONFIG_ESP32_REV_MIN_3
42+
#endif // CONFIG_ESP32_REV_MIN_FULL >= 300

tools/sdk/esp32/include/esp_rom/include/esp32/rom/secure_boot.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -34,7 +34,7 @@ bool ets_secure_boot_check_start(uint8_t abs_index, uint32_t iv_addr);
3434

3535
int ets_secure_boot_check_finish(uint32_t *abstract);
3636

37-
#ifdef CONFIG_ESP32_REV_MIN_3
37+
#if CONFIG_ESP32_REV_MIN_FULL >= 300
3838
#include "rsa_pss.h"
3939

4040
#define SECURE_BOOT_NUM_BLOCKS 1
@@ -115,7 +115,7 @@ bool ets_use_secure_boot_v2(void);
115115
#else
116116
#define SECURE_BOOT_NUM_BLOCKS 0
117117

118-
#endif /* CONFIG_ESP32_REV_MIN_3 */
118+
#endif /* CONFIG_ESP32_REV_MIN_FULL >= 300 */
119119

120120
#ifdef __cplusplus
121121
}

tools/sdk/esp32/include/hal/esp32/include/hal/can_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ extern "C" {
3838
#define CAN_MSG_FLAG_SELF TWAI_MSG_FLAG_SELF
3939
#define CAN_MSG_FLAG_DLC_NON_COMP TWAI_MSG_FLAG_DLC_NON_COMP
4040

41-
#if (SOC_TWAI_BRP_MAX > 128) || (CONFIG_ESP32_REV_MIN >= 2)
41+
#if (SOC_TWAI_BRP_MAX > 128) || (CONFIG_ESP32_REV_MIN_FULL >= 200)
4242
#define CAN_TIMING_CONFIG_12_5KBITS() TWAI_TIMING_CONFIG_12_5KBITS()
4343
#define CAN_TIMING_CONFIG_16KBITS() TWAI_TIMING_CONFIG_16KBITS()
4444
#define CAN_TIMING_CONFIG_20KBITS() TWAI_TIMING_CONFIG_20KBITS()

tools/sdk/esp32/include/hal/include/hal/twai_types.h

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
// Copyright 2015-2019 Espressif Systems (Shanghai) PTE LTD
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
1+
/*
2+
* SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
146

157
#pragma once
168

@@ -65,7 +57,7 @@ extern "C" {
6557
#define TWAI_TIMING_CONFIG_5KBITS() {.brp = 800, .tseg_1 = 15, .tseg_2 = 4, .sjw = 3, .triple_sampling = false}
6658
#define TWAI_TIMING_CONFIG_10KBITS() {.brp = 400, .tseg_1 = 15, .tseg_2 = 4, .sjw = 3, .triple_sampling = false}
6759
#endif
68-
#if (SOC_TWAI_BRP_MAX > 128) || (CONFIG_ESP32_REV_MIN >= 2)
60+
#if (SOC_TWAI_BRP_MAX > 128) || (CONFIG_ESP32_REV_MIN_FULL >= 200)
6961
#define TWAI_TIMING_CONFIG_12_5KBITS() {.brp = 256, .tseg_1 = 16, .tseg_2 = 8, .sjw = 3, .triple_sampling = false}
7062
#define TWAI_TIMING_CONFIG_16KBITS() {.brp = 200, .tseg_1 = 16, .tseg_2 = 8, .sjw = 3, .triple_sampling = false}
7163
#define TWAI_TIMING_CONFIG_20KBITS() {.brp = 200, .tseg_1 = 15, .tseg_2 = 4, .sjw = 3, .triple_sampling = false}

tools/sdk/esp32/include/lwip/lwip/src/include/lwip/dhcp.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,9 @@ extern "C" {
5050
#endif
5151

5252
/** period (in seconds) of the application calling dhcp_coarse_tmr() */
53-
#if ESP_DHCP
53+
#ifndef DHCP_COARSE_TIMER_SECS
5454
#define DHCP_COARSE_TIMER_SECS 1
55-
#else
56-
#define DHCP_COARSE_TIMER_SECS 60
57-
#endif
55+
#endif /* DHCP_COARSE_TIMER_SECS */
5856
/** period (in milliseconds) of the application calling dhcp_coarse_tmr() */
5957
#define DHCP_COARSE_TIMER_MSECS (DHCP_COARSE_TIMER_SECS * 1000UL)
6058
/** period (in milliseconds) of the application calling dhcp_fine_tmr() */

tools/sdk/esp32/include/lwip/port/esp32/include/lwipopts.h

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
#include "netif/dhcp_state.h"
2222
#include "sntp/sntp_get_set_time.h"
2323

24+
#ifdef __cplusplus
25+
extern "C"
26+
{
27+
#endif
28+
2429
/* Enable all Espressif-only options */
2530

2631
/*
@@ -231,6 +236,33 @@
231236
*/
232237
#define ESP_DHCP_DISABLE_CLIENT_ID CONFIG_LWIP_DHCP_DISABLE_CLIENT_ID
233238

239+
#define DHCP_DEFINE_CUSTOM_TIMEOUTS 1
240+
/* Since for embedded devices it's not that hard to miss a discover packet, so lower
241+
* the discover retry backoff time from (2,4,8,16,32,60,60)s to (500m,1,2,4,8,15,15)s.
242+
*/
243+
#define DHCP_REQUEST_TIMEOUT_SEQUENCE(state, tries) (state == DHCP_STATE_REQUESTING ? \
244+
(uint16_t)(1 * 1000) : \
245+
(uint16_t)(((tries) < 6 ? 1 << (tries) : 60) * 250))
246+
247+
#define DHCP_COARSE_TIMER_SECS CONFIG_LWIP_DHCP_COARSE_TIMER_SECS
248+
249+
static inline uint32_t timeout_from_offered(uint32_t lease, uint32_t min)
250+
{
251+
uint32_t timeout = lease;
252+
if (timeout == 0) {
253+
timeout = min;
254+
}
255+
timeout = (timeout + DHCP_COARSE_TIMER_SECS - 1) / DHCP_COARSE_TIMER_SECS;
256+
return timeout;
257+
}
258+
259+
#define DHCP_CALC_TIMEOUT_FROM_OFFERED_T0_LEASE(dhcp) \
260+
timeout_from_offered((dhcp)->offered_t0_lease, 120)
261+
#define DHCP_CALC_TIMEOUT_FROM_OFFERED_T1_RENEW(dhcp) \
262+
timeout_from_offered((dhcp)->offered_t1_renew, (dhcp)->t0_timeout >> 1 /* 50% */)
263+
#define DHCP_CALC_TIMEOUT_FROM_OFFERED_T2_REBIND(dhcp) \
264+
timeout_from_offered((dhcp)->offered_t2_rebind, ((dhcp)->t0_timeout / 8) * 7 /* 87.5% */)
265+
234266
/**
235267
* CONFIG_LWIP_DHCP_RESTORE_LAST_IP==1: Last valid IP address obtained from DHCP server
236268
* is restored after reset/power-up.
@@ -1111,4 +1143,8 @@
11111143

11121144
#define SOC_SEND_LOG //printf
11131145

1146+
#ifdef __cplusplus
1147+
}
1148+
#endif
1149+
11141150
#endif /* __LWIPOPTS_H__ */

tools/sdk/esp32/include/soc/esp32/include/soc/soc_caps.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#ifdef __has_include
3232
# if __has_include("sdkconfig.h")
3333
# include "sdkconfig.h"
34-
# define SOC_CAPS_ECO_VER CONFIG_ESP32_REV_MIN
34+
# define SOC_CAPS_ECO_VER CONFIG_ESP32_REV_MIN_FULL
3535
# endif
3636
#endif
3737

@@ -50,7 +50,7 @@
5050
#endif
5151

5252
/*-------------------------- COMMON CAPS ---------------------------------------*/
53-
#define SOC_CAPS_ECO_VER_MAX 3
53+
#define SOC_CAPS_ECO_VER_MAX 301
5454

5555
#define SOC_ADC_SUPPORTED 1
5656
#define SOC_DAC_SUPPORTED 1
@@ -80,6 +80,7 @@
8080
/*!< SAR ADC Module*/
8181
#define SOC_ADC_RTC_CTRL_SUPPORTED 1
8282
#define SOC_ADC_DIG_CTRL_SUPPORTED 1
83+
#define SOC_ADC_DIG_SUPPORTED_UNIT(UNIT) ((UNIT == 0) ? 1 : 0)
8384
#define SOC_ADC_PERIPH_NUM (2)
8485
#define SOC_ADC_CHANNEL_NUM(PERIPH_NUM) ((PERIPH_NUM==0)? 8: 10)
8586
#define SOC_ADC_MAX_CHANNEL_NUM (10)
@@ -101,7 +102,7 @@
101102

102103

103104
/*-------------------------- BROWNOUT CAPS -----------------------------------*/
104-
#if SOC_CAPS_ECO_VER >= 1
105+
#if SOC_CAPS_ECO_VER >= 100
105106
#define SOC_BROWNOUT_RESET_SUPPORTED 1
106107
#endif
107108

@@ -251,7 +252,7 @@
251252

252253
/*-------------------------- TWAI CAPS ---------------------------------------*/
253254
#define SOC_TWAI_BRP_MIN 2
254-
#if SOC_CAPS_ECO_VER >= 2
255+
#if SOC_CAPS_ECO_VER >= 200
255256
# define SOC_TWAI_BRP_MAX 256
256257
# define SOC_TWAI_BRP_DIV_SUPPORTED 1
257258
# define SOC_TWAI_BRP_DIV_THRESH 128
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
* SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#pragma once
8+
9+
#include "sdkconfig.h"
10+
11+
#ifdef __cplusplus
12+
extern "C" {
13+
#endif
14+
15+
/**
16+
* Convenient macros to check current wafer version against a version where some changes are introduced.
17+
* Use `ESP_CHIP_REV_ABOVE` for a change introduced before any major versions.
18+
* Use `ESP_CHIP_REV_MAJOR_AND_ABOVE` for changes introduced after a major version is added.
19+
* For example, on ESP32 we have wafer versions:
20+
*
21+
* 0.0 -> 1.0 -> 2.0 -> 3.0 -> 3.1 -> N.A.
22+
* |->1.1
23+
*
24+
* - If we are adding code for a change on 1.1, we should use `ESP_CHIP_REV_MAJOR_AND_ABOVE`
25+
* because there is already major version 2 existing. The condition will be met from 1.1 to 1.99,
26+
* while not inherited by 2.0 and above.
27+
*
28+
* - If we are adding code for a change on 3.1, we should use `ESP_CHIP_REV_ABOVE`
29+
* because there is no major version 4. The condition will be met from 3.1 to 3.99 and 4.0 and above.
30+
* Even if we add revision 4.0 on this version, the logic will be inherited.
31+
*/
32+
33+
#define ESP_CHIP_REV_ABOVE(rev, min_rev) ((min_rev) <= (rev))
34+
#define ESP_CHIP_REV_MAJOR_AND_ABOVE(rev, min_rev) (((rev) / 100 == (min_rev) / 100) && ((rev) >= (min_rev)))
35+
36+
_Static_assert(CONFIG_ESP_REV_MIN_FULL <= CONFIG_ESP_REV_MAX_FULL, "Min version must be less than Max version");
37+
38+
#ifdef __cplusplus
39+
}
40+
#endif

tools/sdk/esp32/ld/sections.ld

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

tools/sdk/esp32/lib/libapp_update.a

28 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libasio.a

-40 Bytes
Binary file not shown.
2.16 KB
Binary file not shown.

tools/sdk/esp32/lib/libbt.a

124 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libcoap.a

8 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libdriver.a

0 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libefuse.a

4 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libesp-tls.a

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libesp_eth.a

0 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libesp_event.a

0 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libesp_hid.a

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
84 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
1.05 KB
Binary file not shown.

tools/sdk/esp32/lib/libesp_insights.a

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libesp_netif.a

0 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libesp_phy.a

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libesp_system.a

-352 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libesp_wifi.a

0 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libespcoredump.a

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libfreemodbus.a

0 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libhal.a

-144 Bytes
Binary file not shown.

tools/sdk/esp32/lib/liblwip.a

1.4 KB
Binary file not shown.

tools/sdk/esp32/lib/libmdns.a

-76 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libmqtt.a

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libspiffs.a

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
40 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)