Skip to content

Commit 5e7daba

Browse files
committed
IDF release/v4.4 c9140caf8c
1 parent d4572e2 commit 5e7daba

File tree

304 files changed

+3319
-1157
lines changed

Some content is hidden

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

304 files changed

+3319
-1157
lines changed

platform.txt

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

tools/platformio-build-esp32.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,20 @@
4242
],
4343

4444
CFLAGS=[
45-
"-mlongcalls",
4645
"-Wno-frame-address",
4746
"-std=gnu99",
4847
"-Wno-old-style-declaration"
4948
],
5049

5150
CXXFLAGS=[
52-
"-mlongcalls",
5351
"-Wno-frame-address",
5452
"-std=gnu++11",
5553
"-fexceptions",
5654
"-fno-rtti"
5755
],
5856

5957
CCFLAGS=[
58+
"-mlongcalls",
6059
"-ffunction-sections",
6160
"-fdata-sections",
6261
"-Wno-error=unused-function",
@@ -324,7 +323,7 @@
324323
"UNITY_INCLUDE_CONFIG_H",
325324
"WITH_POSIX",
326325
"_GNU_SOURCE",
327-
("IDF_VER", '\\"v4.4.1-405-g6c5fb29c2c\\"'),
326+
("IDF_VER", '\\"v4.4.1-472-gc9140caf8c\\"'),
328327
"ESP_PLATFORM",
329328
"_POSIX_READER_WRITER_LOCKS",
330329
"ARDUINO_ARCH_ESP32",

tools/platformio-build-esp32c3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@
318318
"UNITY_INCLUDE_CONFIG_H",
319319
"WITH_POSIX",
320320
"_GNU_SOURCE",
321-
("IDF_VER", '\\"v4.4.1-405-g6c5fb29c2c\\"'),
321+
("IDF_VER", '\\"v4.4.1-472-gc9140caf8c\\"'),
322322
"ESP_PLATFORM",
323323
"_POSIX_READER_WRITER_LOCKS",
324324
"ARDUINO_ARCH_ESP32",

tools/platformio-build-esp32s2.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,18 @@
4343
],
4444

4545
CFLAGS=[
46-
"-mlongcalls",
4746
"-std=gnu99",
4847
"-Wno-old-style-declaration"
4948
],
5049

5150
CXXFLAGS=[
52-
"-mlongcalls",
5351
"-std=gnu++11",
5452
"-fexceptions",
5553
"-fno-rtti"
5654
],
5755

5856
CCFLAGS=[
57+
"-mlongcalls",
5958
"-ffunction-sections",
6059
"-fdata-sections",
6160
"-Wno-error=unused-function",
@@ -307,7 +306,7 @@
307306
"UNITY_INCLUDE_CONFIG_H",
308307
"WITH_POSIX",
309308
"_GNU_SOURCE",
310-
("IDF_VER", '\\"v4.4.1-405-g6c5fb29c2c\\"'),
309+
("IDF_VER", '\\"v4.4.1-472-gc9140caf8c\\"'),
311310
"ESP_PLATFORM",
312311
"_POSIX_READER_WRITER_LOCKS",
313312
"ARDUINO_ARCH_ESP32",

tools/platformio-build-esp32s3.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,18 @@
4242
],
4343

4444
CFLAGS=[
45-
"-mlongcalls",
4645
"-std=gnu99",
4746
"-Wno-old-style-declaration"
4847
],
4948

5049
CXXFLAGS=[
51-
"-mlongcalls",
5250
"-std=gnu++11",
5351
"-fexceptions",
5452
"-fno-rtti"
5553
],
5654

5755
CCFLAGS=[
56+
"-mlongcalls",
5857
"-ffunction-sections",
5958
"-fdata-sections",
6059
"-Wno-error=unused-function",
@@ -323,7 +322,7 @@
323322
"UNITY_INCLUDE_CONFIG_H",
324323
"WITH_POSIX",
325324
"_GNU_SOURCE",
326-
("IDF_VER", '\\"v4.4.1-405-g6c5fb29c2c\\"'),
325+
("IDF_VER", '\\"v4.4.1-472-gc9140caf8c\\"'),
327326
"ESP_PLATFORM",
328327
"_POSIX_READER_WRITER_LOCKS",
329328
"ARDUINO_ARCH_ESP32",
96 Bytes
Binary file not shown.
96 Bytes
Binary file not shown.
96 Bytes
Binary file not shown.
96 Bytes
Binary file not shown.
96 Bytes
Binary file not shown.
96 Bytes
Binary file not shown.
96 Bytes
Binary file not shown.
96 Bytes
Binary file not shown.

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#define CONFIG_BOOTLOADER_REGION_PROTECTION_ENABLE 1
2424
#define CONFIG_BOOTLOADER_WDT_ENABLE 1
2525
#define CONFIG_BOOTLOADER_WDT_TIME_MS 9000
26+
#define CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE 1
2627
#define CONFIG_BOOTLOADER_SKIP_VALIDATE_IN_DEEP_SLEEP 1
2728
#define CONFIG_BOOTLOADER_RESERVE_RTC_SIZE 0x10
2829
#define CONFIG_BOOTLOADER_FLASH_XMC_SUPPORT 1
@@ -186,6 +187,7 @@
186187
#define CONFIG_BLE_MESH_SENSOR_SERVER 1
187188
#define CONFIG_BLE_MESH_TIME_SCENE_SERVER 1
188189
#define CONFIG_BLE_MESH_LIGHTING_SERVER 1
190+
#define CONFIG_BLE_MESH_DISCARD_OLD_SEQ_AUTH 1
189191
#define CONFIG_COAP_MBEDTLS_PSK 1
190192
#define CONFIG_COAP_LOG_DEFAULT_LEVEL 0
191193
#define CONFIG_ADC_DISABLE_DAC 1
@@ -580,6 +582,7 @@
580582
#define CONFIG_WIFI_PROV_SCAN_MAX_ENTRIES 16
581583
#define CONFIG_WIFI_PROV_AUTOSTOP_TIMEOUT 30
582584
#define CONFIG_WIFI_PROV_BLE_BONDING 1
585+
#define CONFIG_WIFI_PROV_BLE_FORCE_ENCRYPTION 1
583586
#define CONFIG_WPA_MBEDTLS_CRYPTO 1
584587
#define CONFIG_IO_GLITCH_FILTER_TIME_MS 50
585588
#define CONFIG_ESP_RMAKER_LIB_ESP_MQTT 1
@@ -633,6 +636,7 @@
633636
/* List of deprecated options */
634637
#define CONFIG_A2DP_ENABLE CONFIG_BT_A2DP_ENABLE
635638
#define CONFIG_ADC2_DISABLE_DAC CONFIG_ADC_DISABLE_DAC
639+
#define CONFIG_APP_ROLLBACK_ENABLE CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE
636640
#define CONFIG_BLE_ADV_REPORT_DISCARD_THRSHOLD CONFIG_BTDM_BLE_ADV_REPORT_DISCARD_THRSHOLD
637641
#define CONFIG_BLE_ADV_REPORT_FLOW_CONTROL_NUM CONFIG_BTDM_BLE_ADV_REPORT_FLOW_CTRL_NUM
638642
#define CONFIG_BLE_ADV_REPORT_FLOW_CONTROL_SUPPORTED CONFIG_BTDM_BLE_ADV_REPORT_FLOW_CTRL_SUPP
@@ -743,5 +747,5 @@
743747
#define CONFIG_ULP_COPROC_ENABLED CONFIG_ESP32_ULP_COPROC_ENABLED
744748
#define CONFIG_ULP_COPROC_RESERVE_MEM CONFIG_ESP32_ULP_COPROC_RESERVE_MEM
745749
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
746-
#define CONFIG_ARDUINO_IDF_COMMIT "6c5fb29c2c"
750+
#define CONFIG_ARDUINO_IDF_COMMIT "c9140caf8c"
747751
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.4"

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#define CONFIG_BOOTLOADER_REGION_PROTECTION_ENABLE 1
2424
#define CONFIG_BOOTLOADER_WDT_ENABLE 1
2525
#define CONFIG_BOOTLOADER_WDT_TIME_MS 9000
26+
#define CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE 1
2627
#define CONFIG_BOOTLOADER_SKIP_VALIDATE_IN_DEEP_SLEEP 1
2728
#define CONFIG_BOOTLOADER_RESERVE_RTC_SIZE 0x10
2829
#define CONFIG_BOOTLOADER_FLASH_XMC_SUPPORT 1
@@ -186,6 +187,7 @@
186187
#define CONFIG_BLE_MESH_SENSOR_SERVER 1
187188
#define CONFIG_BLE_MESH_TIME_SCENE_SERVER 1
188189
#define CONFIG_BLE_MESH_LIGHTING_SERVER 1
190+
#define CONFIG_BLE_MESH_DISCARD_OLD_SEQ_AUTH 1
189191
#define CONFIG_COAP_MBEDTLS_PSK 1
190192
#define CONFIG_COAP_LOG_DEFAULT_LEVEL 0
191193
#define CONFIG_ADC_DISABLE_DAC 1
@@ -580,6 +582,7 @@
580582
#define CONFIG_WIFI_PROV_SCAN_MAX_ENTRIES 16
581583
#define CONFIG_WIFI_PROV_AUTOSTOP_TIMEOUT 30
582584
#define CONFIG_WIFI_PROV_BLE_BONDING 1
585+
#define CONFIG_WIFI_PROV_BLE_FORCE_ENCRYPTION 1
583586
#define CONFIG_WPA_MBEDTLS_CRYPTO 1
584587
#define CONFIG_IO_GLITCH_FILTER_TIME_MS 50
585588
#define CONFIG_ESP_RMAKER_LIB_ESP_MQTT 1
@@ -633,6 +636,7 @@
633636
/* List of deprecated options */
634637
#define CONFIG_A2DP_ENABLE CONFIG_BT_A2DP_ENABLE
635638
#define CONFIG_ADC2_DISABLE_DAC CONFIG_ADC_DISABLE_DAC
639+
#define CONFIG_APP_ROLLBACK_ENABLE CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE
636640
#define CONFIG_BLE_ADV_REPORT_DISCARD_THRSHOLD CONFIG_BTDM_BLE_ADV_REPORT_DISCARD_THRSHOLD
637641
#define CONFIG_BLE_ADV_REPORT_FLOW_CONTROL_NUM CONFIG_BTDM_BLE_ADV_REPORT_FLOW_CTRL_NUM
638642
#define CONFIG_BLE_ADV_REPORT_FLOW_CONTROL_SUPPORTED CONFIG_BTDM_BLE_ADV_REPORT_FLOW_CTRL_SUPP
@@ -743,5 +747,5 @@
743747
#define CONFIG_ULP_COPROC_ENABLED CONFIG_ESP32_ULP_COPROC_ENABLED
744748
#define CONFIG_ULP_COPROC_RESERVE_MEM CONFIG_ESP32_ULP_COPROC_RESERVE_MEM
745749
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
746-
#define CONFIG_ARDUINO_IDF_COMMIT "6c5fb29c2c"
750+
#define CONFIG_ARDUINO_IDF_COMMIT "c9140caf8c"
747751
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.4"

tools/sdk/esp32/include/bt/host/bluedroid/api/include/api/esp_hf_ag_api.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ extern "C" {
3434
#define ESP_HF_PEER_FEAT_ECC 0x80 /* Enhanced Call Control */
3535
#define ESP_HF_PEER_FEAT_EXTERR 0x100 /* Extended error codes */
3636
#define ESP_HF_PEER_FEAT_CODEC 0x200 /* Codec Negotiation */
37+
/* HFP 1.7+ */
38+
#define ESP_HF_PEER_FEAT_HF_IND 0x400 /* HF Indicators */
39+
#define ESP_HF_PEER_FEAT_ESCO_S4 0x800 /* eSCO S4 Setting Supported */
40+
3741

3842
/* CHLD feature masks of HF AG */
3943
#define ESP_HF_CHLD_FEAT_REL 0x01 /* 0 Release waiting call or held calls */

tools/sdk/esp32/include/driver/include/driver/ledc.h

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,43 @@
1717
extern "C" {
1818
#endif
1919

20-
#define LEDC_APB_CLK_HZ (APB_CLK_FREQ)
21-
#define LEDC_REF_CLK_HZ (REF_CLK_FREQ)
22-
#define LEDC_ERR_DUTY (0xFFFFFFFF)
23-
#define LEDC_ERR_VAL (-1)
20+
#define LEDC_APB_CLK_HZ (APB_CLK_FREQ)
21+
#define LEDC_REF_CLK_HZ (REF_CLK_FREQ)
22+
#define LEDC_ERR_DUTY (0xFFFFFFFF)
23+
#define LEDC_ERR_VAL (-1)
24+
25+
/**
26+
* @brief Configuration parameters of LEDC channel for ledc_channel_config function
27+
*/
28+
typedef struct {
29+
int gpio_num; /*!< the LEDC output gpio_num, if you want to use gpio16, gpio_num = 16 */
30+
ledc_mode_t speed_mode; /*!< LEDC speed speed_mode, high-speed mode or low-speed mode */
31+
ledc_channel_t channel; /*!< LEDC channel (0 - 7) */
32+
ledc_intr_type_t intr_type; /*!< configure interrupt, Fade interrupt enable or Fade interrupt disable */
33+
ledc_timer_t timer_sel; /*!< Select the timer source of channel (0 - 3) */
34+
uint32_t duty; /*!< LEDC channel duty, the range of duty setting is [0, (2**duty_resolution)] */
35+
int hpoint; /*!< LEDC channel hpoint value, the max value is 0xfffff */
36+
struct {
37+
unsigned int output_invert: 1;/*!< Enable (1) or disable (0) gpio output invert */
38+
} flags; /*!< LEDC flags */
39+
40+
} ledc_channel_config_t;
41+
42+
/**
43+
* @brief Configuration parameters of LEDC Timer timer for ledc_timer_config function
44+
*/
45+
typedef struct {
46+
ledc_mode_t speed_mode; /*!< LEDC speed speed_mode, high-speed mode or low-speed mode */
47+
union {
48+
ledc_timer_bit_t duty_resolution; /*!< LEDC channel duty resolution */
49+
ledc_timer_bit_t bit_num __attribute__((deprecated)); /*!< Deprecated in ESP-IDF 3.0. This is an alias to 'duty_resolution' for backward compatibility with ESP-IDF 2.1 */
50+
};
51+
ledc_timer_t timer_num; /*!< The timer source of channel (0 - 3) */
52+
uint32_t freq_hz; /*!< LEDC timer frequency (Hz) */
53+
ledc_clk_cfg_t clk_cfg; /*!< Configure LEDC source clock.
54+
For low speed channels and high speed channels, you can specify the source clock using LEDC_USE_REF_TICK, LEDC_USE_APB_CLK or LEDC_AUTO_CLK.
55+
For low speed channels, you can also specify the source clock using LEDC_USE_RTC8M_CLK, in this case, all low speed channel's source clock must be RTC8M_CLK*/
56+
} ledc_timer_config_t;
2457

2558
typedef intr_handle_t ledc_isr_handle_t;
2659

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,20 @@ esp_err_t esp_efuse_write_keys(const esp_efuse_purpose_t purposes[], uint8_t key
761761
esp_err_t esp_secure_boot_read_key_digests(ets_secure_boot_key_digests_t *trusted_keys);
762762
#endif
763763

764+
/**
765+
* @brief Checks eFuse errors in BLOCK0.
766+
*
767+
* @note Refers to ESP32-C3 only.
768+
*
769+
* It does a BLOCK0 check if eFuse EFUSE_ERR_RST_ENABLE is set.
770+
* If BLOCK0 has an error, it prints the error and returns ESP_FAIL, which should be treated as esp_restart.
771+
*
772+
* @return
773+
* - ESP_OK: No errors in BLOCK0.
774+
* - ESP_FAIL: Error in BLOCK0 requiring reboot.
775+
*/
776+
esp_err_t esp_efuse_check_errors(void);
777+
764778
#ifdef __cplusplus
765779
}
766780
#endif

tools/sdk/esp32/include/esp32-camera/driver/include/sensor.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ typedef enum {
2828
GC0308_PID = 0x9b,
2929
BF3005_PID = 0x30,
3030
BF20A6_PID = 0x20a6,
31+
SC101IOT_PID = 0xda4a,
3132
SC030IOT_PID = 0x9a46,
3233
} camera_pid_t;
3334

@@ -43,6 +44,7 @@ typedef enum {
4344
CAMERA_GC0308,
4445
CAMERA_BF3005,
4546
CAMERA_BF20A6,
47+
CAMERA_SC101IOT,
4648
CAMERA_SC030IOT,
4749
CAMERA_MODEL_MAX,
4850
CAMERA_NONE,
@@ -60,6 +62,7 @@ typedef enum {
6062
GC0308_SCCB_ADDR = 0x21,// 0x42 >> 1
6163
BF3005_SCCB_ADDR = 0x6E,
6264
BF20A6_SCCB_ADDR = 0x6E,
65+
SC101IOT_SCCB_ADDR = 0x68,// 0xd0 >> 1
6366
SC030IOT_SCCB_ADDR = 0x68,// 0xd0 >> 1
6467
} camera_sccb_addr_t;
6568

tools/sdk/esp32/include/esp_rom/include/esp32s2/rom/rtc.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ typedef enum {
9797
TG1WDT_CPU_RESET = 17, /**<17, Time Group1 reset CPU*/
9898
SUPER_WDT_RESET = 18, /**<18, super watchdog reset digital core and rtc module*/
9999
GLITCH_RTC_RESET = 19, /**<19, glitch reset digital core and rtc module*/
100+
EFUSE_RESET = 20, /**<20, efuse reset digital core*/
100101
} RESET_REASON;
101102

102103
// Check if the reset reason defined in ROM is compatible with soc/reset_reasons.h
@@ -113,6 +114,7 @@ _Static_assert((soc_reset_reason_t)RTCWDT_BROWN_OUT_RESET == RESET_REASON_SYS_BR
113114
_Static_assert((soc_reset_reason_t)RTCWDT_RTC_RESET == RESET_REASON_SYS_RTC_WDT, "RTCWDT_RTC_RESET != RESET_REASON_SYS_RTC_WDT");
114115
_Static_assert((soc_reset_reason_t)SUPER_WDT_RESET == RESET_REASON_SYS_SUPER_WDT, "SUPER_WDT_RESET != RESET_REASON_SYS_SUPER_WDT");
115116
_Static_assert((soc_reset_reason_t)GLITCH_RTC_RESET == RESET_REASON_SYS_CLK_GLITCH, "GLITCH_RTC_RESET != RESET_REASON_SYS_CLK_GLITCH");
117+
_Static_assert((soc_reset_reason_t)EFUSE_RESET == RESET_REASON_CORE_EFUSE_CRC, "EFUSE_RESET != RESET_REASON_CORE_EFUSE_CRC");
116118

117119
typedef enum {
118120
NO_SLEEP = 0,

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

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
// Copyright 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: 2019-2021 Espressif Systems (Shanghai) CO LTD
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
146

157
// The LL layer for LEDC register operations.
168
// Note that most of the register operations in this layer are non-atomic operations.
@@ -22,6 +14,27 @@
2214
#include "soc/ledc_struct.h"
2315

2416
#define LEDC_LL_GET_HW() &LEDC
17+
#define LEDC_LL_FRACTIONAL_BITS (8)
18+
#define LEDC_LL_FRACTIONAL_MAX ((1 << LEDC_LL_FRACTIONAL_BITS) - 1)
19+
20+
#define LEDC_LL_GLOBAL_CLOCKS { \
21+
LEDC_SLOW_CLK_APB, \
22+
LEDC_SLOW_CLK_RTC8M, \
23+
}
24+
#define LEDC_LL_TIMER_SPECIFIC_CLOCKS \
25+
{\
26+
{ \
27+
.clk = LEDC_REF_TICK, \
28+
.freq = LEDC_REF_CLK_HZ, \
29+
} \
30+
}
31+
32+
/* On ESP32, APB clock is a timer-specific clock only in fast clock mode */
33+
#define LEDC_LL_IS_TIMER_SPECIFIC_CLOCK(SPEED, CLK) (\
34+
((CLK) == LEDC_USE_REF_TICK) || \
35+
((SPEED) == LEDC_HIGH_SPEED_MODE && (CLK) == LEDC_USE_APB_CLK) \
36+
)
37+
2538

2639
#ifdef __cplusplus
2740
extern "C" {

0 commit comments

Comments
 (0)