Skip to content

Commit ffab067

Browse files
committed
IDF master dd491ee851
1 parent 70293c4 commit ffab067

File tree

222 files changed

+3703
-774
lines changed

Some content is hidden

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

222 files changed

+3703
-774
lines changed

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
@@ -298,7 +298,7 @@
298298
"UNITY_INCLUDE_CONFIG_H",
299299
"WITH_POSIX",
300300
"_GNU_SOURCE",
301-
("IDF_VER", '\\"v4.4-dev-2944-g316988bd2d\\"'),
301+
("IDF_VER", '\\"v4.4-dev-2977-gdd491ee851\\"'),
302302
"ESP_PLATFORM",
303303
"ARDUINO_ARCH_ESP32",
304304
"ESP32",

tools/platformio-build-esp32c3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@
281281
"UNITY_INCLUDE_CONFIG_H",
282282
"WITH_POSIX",
283283
"_GNU_SOURCE",
284-
("IDF_VER", '\\"v4.4-dev-2944-g316988bd2d\\"'),
284+
("IDF_VER", '\\"v4.4-dev-2977-gdd491ee851\\"'),
285285
"ESP_PLATFORM",
286286
"ARDUINO_ARCH_ESP32",
287287
"ESP32",

tools/platformio-build-esp32s2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@
285285
"UNITY_INCLUDE_CONFIG_H",
286286
"WITH_POSIX",
287287
"_GNU_SOURCE",
288-
("IDF_VER", '\\"v4.4-dev-2944-g316988bd2d\\"'),
288+
("IDF_VER", '\\"v4.4-dev-2977-gdd491ee851\\"'),
289289
"ESP_PLATFORM",
290290
"ARDUINO_ARCH_ESP32",
291291
"ESP32",
0 Bytes
Binary file not shown.
16 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
16 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/config/sdkconfig.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,6 @@
393393
#define CONFIG_LWIP_DHCPS_MAX_STATION_NUM 8
394394
#define CONFIG_LWIP_IPV6 1
395395
#define CONFIG_LWIP_IPV6_NUM_ADDRESSES 3
396-
#define CONFIG_LWIP_IPV6_RDNSS_MAX_DNS_SERVERS 0
397396
#define CONFIG_LWIP_NETIF_LOOPBACK 1
398397
#define CONFIG_LWIP_LOOPBACK_MAX_PBUFS 8
399398
#define CONFIG_LWIP_MAX_ACTIVE_TCP 16
@@ -695,5 +694,5 @@
695694
#define CONFIG_ULP_COPROC_ENABLED CONFIG_ESP32_ULP_COPROC_ENABLED
696695
#define CONFIG_ULP_COPROC_RESERVE_MEM CONFIG_ESP32_ULP_COPROC_RESERVE_MEM
697696
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
698-
#define CONFIG_ARDUINO_IDF_COMMIT "316988bd2d"
697+
#define CONFIG_ARDUINO_IDF_COMMIT "dd491ee851"
699698
#define CONFIG_ARDUINO_IDF_BRANCH "master"

tools/sdk/esp32/include/esp_hw_support/include/soc/esp32c3/esp_hmac.h

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,35 @@ esp_err_t esp_hmac_calculate(hmac_key_id_t key_id,
5252
size_t message_len,
5353
uint8_t *hmac);
5454

55+
/**
56+
* @brief Use HMAC peripheral in Downstream mode to re-enable the JTAG, if it is not permanently disabled by HW.
57+
* In downstream mode, HMAC calculations performed by peripheral are used internally and not provided back to user.
58+
*
59+
* @param key_id Determines which of the 6 key blocks in the efuses should be used for the HMAC calculation.
60+
* The corresponding purpose field of the key block in the efuse must be set to HMAC downstream purpose.
61+
*
62+
* @param token Pre calculated HMAC value of the 32-byte 0x00 using SHA-256 and the known private HMAC key. The key is already
63+
* programmed to a eFuse key block. The key block number is provided as the first parameter to this function.
64+
*
65+
* @return
66+
* * ESP_OK, if the calculation was successful,
67+
* if the calculated HMAC value matches with provided token,
68+
* JTAG will be re-enable otherwise JTAG will remain disabled.
69+
* Return value does not indicate the JTAG status.
70+
* * ESP_FAIL, if the hmac calculation failed or JTAG is permanently disabled by EFUSE_HARD_DIS_JTAG eFuse parameter.
71+
* * ESP_ERR_INVALID_ARG, invalid input arguments
72+
*/
73+
esp_err_t esp_hmac_jtag_enable(hmac_key_id_t key_id, const uint8_t *token);
74+
75+
/**
76+
* @brief Disable the JTAG which might be enabled using the HMAC downstream mode. This function just clears the result generated
77+
* by calling esp_hmac_jtag_enable() API.
78+
*
79+
* @return
80+
* * ESP_OK return ESP_OK after writing the HMAC_SET_INVALIDATE_JTAG_REG with value 1.
81+
*/
82+
esp_err_t esp_hmac_jtag_disable(void);
83+
5584
#ifdef __cplusplus
5685
}
5786
#endif

tools/sdk/esp32/include/esp_hw_support/include/soc/esp32h2/esp_hmac.h

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,35 @@ esp_err_t esp_hmac_calculate(hmac_key_id_t key_id,
5252
size_t message_len,
5353
uint8_t *hmac);
5454

55+
/**
56+
* @brief Use HMAC peripheral in Downstream mode to re-enable the JTAG, if it is not permanently disabled by HW.
57+
* In downstream mode, HMAC calculations performed by peripheral are used internally and not provided back to user.
58+
*
59+
* @param key_id Determines which of the 6 key blocks in the efuses should be used for the HMAC calculation.
60+
* The corresponding purpose field of the key block in the efuse must be set to HMAC downstream purpose.
61+
*
62+
* @param token Pre calculated HMAC value of the 32-byte 0x00 using SHA-256 and the known private HMAC key. The key is already
63+
* programmed to a eFuse key block. The key block number is provided as the first parameter to this function.
64+
*
65+
* @return
66+
* * ESP_OK, if the calculation was successful,
67+
* if the calculated HMAC value matches with provided token,
68+
* JTAG will be re-enable otherwise JTAG will remain disabled.
69+
* Return value does not indicate the JTAG status.
70+
* * ESP_FAIL, if the hmac calculation failed or JTAG is permanently disabled by EFUSE_HARD_DIS_JTAG eFuse parameter.
71+
* * ESP_ERR_INVALID_ARG, invalid input arguments
72+
*/
73+
esp_err_t esp_hmac_jtag_enable(hmac_key_id_t key_id, const uint8_t *token);
74+
75+
/**
76+
* @brief Disable the JTAG which might be enabled using the HMAC downstream mode. This function just clears the result generated
77+
* by calling esp_hmac_jtag_enable() API.
78+
*
79+
* @return
80+
* * ESP_OK return ESP_OK after writing the HMAC_SET_INVALIDATE_JTAG_REG with value 1.
81+
*/
82+
esp_err_t esp_hmac_jtag_disable(void);
83+
5584
#ifdef __cplusplus
5685
}
5786
#endif

tools/sdk/esp32/include/esp_hw_support/include/soc/esp32s3/esp_hmac.h

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,35 @@ esp_err_t esp_hmac_calculate(hmac_key_id_t key_id,
5050
size_t message_len,
5151
uint8_t *hmac);
5252

53+
/**
54+
* @brief Use HMAC peripheral in Downstream mode to re-enable the JTAG, if it is not permanently disabled by HW.
55+
* In downstream mode, HMAC calculations performed by peripheral are used internally and not provided back to user.
56+
*
57+
* @param key_id Determines which of the 6 key blocks in the efuses should be used for the HMAC calculation.
58+
* The corresponding purpose field of the key block in the efuse must be set to HMAC downstream purpose.
59+
*
60+
* @param token Pre calculated HMAC value of the 32-byte 0x00 using SHA-256 and the known private HMAC key. The key is already
61+
* programmed to a eFuse key block. The key block number is provided as the first parameter to this function.
62+
*
63+
* @return
64+
* * ESP_OK, if the calculation was successful,
65+
* if the calculated HMAC value matches with provided token,
66+
* JTAG will be re-enable otherwise JTAG will remain disabled.
67+
* Return value does not indicate the JTAG status.
68+
* * ESP_FAIL, if the hmac calculation failed or JTAG is permanently disabled by EFUSE_HARD_DIS_JTAG eFuse parameter.
69+
* * ESP_ERR_INVALID_ARG, invalid input arguments
70+
*/
71+
esp_err_t esp_hmac_jtag_enable(hmac_key_id_t key_id, const uint8_t *token);
72+
73+
/**
74+
* @brief Disable the JTAG which might be enabled using the HMAC downstream mode. This function just clears the result generated
75+
* by calling esp_hmac_jtag_enable() API.
76+
*
77+
* @return
78+
* * ESP_OK return ESP_OK after writing the HMAC_SET_INVALIDATE_JTAG_REG with value 1.
79+
*/
80+
esp_err_t esp_hmac_jtag_disable(void);
81+
5382
#ifdef __cplusplus
5483
}
5584
#endif

tools/sdk/esp32/include/freertos/include/freertos/FreeRTOS.h

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,14 @@
890890
#define configUSE_TASK_NOTIFICATIONS 1
891891
#endif
892892

893+
#ifndef configTASK_NOTIFICATION_ARRAY_ENTRIES
894+
#define configTASK_NOTIFICATION_ARRAY_ENTRIES 1
895+
#endif
896+
897+
#if configTASK_NOTIFICATION_ARRAY_ENTRIES < 1
898+
#error configTASK_NOTIFICATION_ARRAY_ENTRIES must be at least 1
899+
#endif
900+
893901
#ifndef configUSE_POSIX_ERRNO
894902
#define configUSE_POSIX_ERRNO 0
895903
#endif
@@ -1217,8 +1225,8 @@ typedef struct xSTATIC_TCB
12171225
struct _reent xDummy17;
12181226
#endif
12191227
#if ( configUSE_TASK_NOTIFICATIONS == 1 )
1220-
uint32_t ulDummy18;
1221-
uint8_t ucDummy19;
1228+
uint32_t ulDummy18[ configTASK_NOTIFICATION_ARRAY_ENTRIES ];
1229+
uint8_t ucDummy19[ configTASK_NOTIFICATION_ARRAY_ENTRIES ];
12221230
#endif
12231231
#if ( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 )
12241232
uint8_t uxDummy20;

tools/sdk/esp32/include/freertos/include/freertos/FreeRTOSConfig.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,4 +300,6 @@ extern void vPortCleanUpTCB ( void *pxTCB );
300300

301301
#define configINCLUDE_FREERTOS_TASK_C_ADDITIONS_H 1
302302

303+
#define configTASK_NOTIFICATION_ARRAY_ENTRIES 1
304+
303305
#endif /* FREERTOS_CONFIG_H */
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* FreeRTOS Kernel V10.4.3
3+
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4+
*
5+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
* this software and associated documentation files (the "Software"), to deal in
7+
* the Software without restriction, including without limitation the rights to
8+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
* the Software, and to permit persons to whom the Software is furnished to do so,
10+
* subject to the following conditions:
11+
*
12+
* The above copyright notice and this permission notice shall be included in all
13+
* copies or substantial portions of the Software.
14+
*
15+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21+
*
22+
* https://www.FreeRTOS.org
23+
* https://github.com/FreeRTOS
24+
*
25+
*/
26+
27+
28+
#ifndef _MSC_VER /* Visual Studio doesn't support #warning. */
29+
#warning The name of this file has changed to stack_macros.h. Please update your code accordingly. This source file (which has the original name) will be removed in future released.
30+
#endif
31+
32+
#include "stack_macros.h"

tools/sdk/esp32/include/freertos/include/freertos/message_buffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ typedef void * MessageBufferHandle_t;
676676
/**
677677
* @cond
678678
* message_buffer.h
679-
* @code{c}{c}
679+
* @code{c}
680680
* BaseType_t xMessageBufferIsEmpty( MessageBufferHandle_t xMessageBuffer ) );
681681
* @endcode
682682
* @endcond

0 commit comments

Comments
 (0)