Skip to content

Commit c34d4b6

Browse files
committed
IDF release/v5.1 3fd0eff833
1 parent 18d361e commit c34d4b6

File tree

605 files changed

+8310
-1971
lines changed

Some content is hidden

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

605 files changed

+8310
-1971
lines changed

esp32/bin/bootloader_dio_40m.elf

0 Bytes
Binary file not shown.

esp32/bin/bootloader_dio_80m.elf

0 Bytes
Binary file not shown.

esp32/bin/bootloader_qio_40m.elf

0 Bytes
Binary file not shown.

esp32/bin/bootloader_qio_80m.elf

0 Bytes
Binary file not shown.

esp32/dio_qspi/include/sdkconfig.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
#define CONFIG_SOC_ADC_RTC_MIN_BITWIDTH 9
6161
#define CONFIG_SOC_ADC_RTC_MAX_BITWIDTH 12
6262
#define CONFIG_SOC_SHARED_IDCACHE_SUPPORTED 1
63+
#define CONFIG_SOC_IDCACHE_PER_CORE 1
6364
#define CONFIG_SOC_CPU_CORES_NUM 2
6465
#define CONFIG_SOC_CPU_INTR_NUM 32
6566
#define CONFIG_SOC_CPU_HAS_FPU 1
@@ -1083,5 +1084,5 @@
10831084
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
10841085
#define CONFIG_WPA_MBEDTLS_CRYPTO CONFIG_ESP_WIFI_MBEDTLS_CRYPTO
10851086
#define CONFIG_WPA_MBEDTLS_TLS_CLIENT CONFIG_ESP_WIFI_MBEDTLS_TLS_CLIENT
1086-
#define CONFIG_ARDUINO_IDF_COMMIT "79b1379662"
1087+
#define CONFIG_ARDUINO_IDF_COMMIT "3fd0eff833"
10871088
#define CONFIG_ARDUINO_IDF_BRANCH "release/v5.1"

esp32/dio_qspi/libspi_flash.a

-232 Bytes
Binary file not shown.

esp32/flags/defines

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
-DESP_PLATFORM -DIDF_VER=\"v5.1-480-g79b1379662\" -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -DUNITY_INCLUDE_CONFIG_H -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -DTF_LITE_STATIC_MEMORY
1+
-DESP_PLATFORM -DIDF_VER=\"v5.1-552-g3fd0eff833\" -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DUNITY_INCLUDE_CONFIG_H -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -DTF_LITE_STATIC_MEMORY

esp32/flags/includes

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

esp32/include/esp-dl/include/tool/dl_tool.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,9 @@ namespace dl
393393
void print()
394394
{
395395
#if DL_LOG_LATENCY_UNIT
396-
printf("latency: %15u cycle\n", this->get_average_period());
396+
printf("latency: %15lu cycle\n", this->get_average_period());
397397
#else
398-
printf("latency: %15u us\n", this->get_average_period());
398+
printf("latency: %15lu us\n", this->get_average_period());
399399
#endif
400400
}
401401

@@ -407,9 +407,9 @@ namespace dl
407407
void print(const char *message)
408408
{
409409
#if DL_LOG_LATENCY_UNIT
410-
printf("%s: %15u cycle\n", message, this->get_average_period());
410+
printf("%s: %15lu cycle\n", message, this->get_average_period());
411411
#else
412-
printf("%s: %15u us\n", message, this->get_average_period());
412+
printf("%s: %15lu us\n", message, this->get_average_period());
413413
#endif
414414
}
415415

@@ -422,9 +422,9 @@ namespace dl
422422
void print(const char *prefix, const char *key)
423423
{
424424
#if DL_LOG_LATENCY_UNIT
425-
printf("%s::%s: %u cycle\n", prefix, key, this->get_average_period());
425+
printf("%s::%s: %lu cycle\n", prefix, key, this->get_average_period());
426426
#else
427-
printf("%s::%s: %u us\n", prefix, key, this->get_average_period());
427+
printf("%s::%s: %lu us\n", prefix, key, this->get_average_period());
428428
#endif
429429
}
430430
};
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#ifndef ESP_KERNEL_H
2+
#define ESP_KERNEL_H
3+
#include <stdint.h>
4+
#include <stdio.h>
5+
#include <assert.h>
6+
7+
#ifdef __cplusplus
8+
extern "C" {
9+
#endif
10+
11+
void esp_dl_nn_conv2d_s8_wrapper(int8_t* input, int8_t* kernel, int8_t* bias, int input_shape[], int kernel_shape[], int output_shape[], int padding[], int dilation[], int strides[], int input_exponent, int kernel_exponent, int output_exponent, char activation_sym[], int8_t* output);
12+
void esp_dl_nn_depthwise_conv2d_s8_wrapper(int8_t* input, int8_t* kernel, int8_t* bias, int input_shape[], int kernel_shape[], int output_shape[], int padding[], int dilation[], int strides[], int input_exponent, int kernel_exponent, int output_exponent, char activation_sym[], int8_t* output);
13+
14+
#ifdef __cplusplus
15+
}
16+
#endif
17+
18+
#endif // ESP_KERNEL_H
19+

esp32/include/esp_littlefs/include/esp_littlefs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
extern "C" {
1010
#endif
1111

12-
#define ESP_LITTLEFS_VERSION_NUMBER "1.6.0"
12+
#define ESP_LITTLEFS_VERSION_NUMBER "1.7.0"
1313
#define ESP_LITTLEFS_VERSION_MAJOR 1
14-
#define ESP_LITTLEFS_VERSION_MINOR 6
14+
#define ESP_LITTLEFS_VERSION_MINOR 7
1515
#define ESP_LITTLEFS_VERSION_PATCH 0
1616

1717
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 4, 2) && CONFIG_VFS_SUPPORT_DIR

esp32/include/esp_rainmaker/include/esp_rmaker_core.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ typedef struct {
6565
char *model;
6666
/** Subtype (Optional). */
6767
char *subtype;
68+
/** An array of digests read from efuse. Should be freed after use*/
69+
char **secure_boot_digest;
6870
} esp_rmaker_node_info_t;
6971

7072
/** ESP RainMaker Configuration */

esp32/include/esp_wifi/include/esp_wifi.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ extern "C" {
8787
#define ESP_ERR_WIFI_TWT_SETUP_TIMEOUT (ESP_ERR_WIFI_BASE + 24) /*!< Timeout of receiving twt setup response frame, timeout times can be set during twt setup */
8888
#define ESP_ERR_WIFI_TWT_SETUP_TXFAIL (ESP_ERR_WIFI_BASE + 25) /*!< TWT setup frame tx failed */
8989
#define ESP_ERR_WIFI_TWT_SETUP_REJECT (ESP_ERR_WIFI_BASE + 26) /*!< The twt setup request was rejected by the AP */
90+
#define ESP_ERR_WIFI_DISCARD (ESP_ERR_WIFI_BASE + 27) /*!< Discard frame */
9091

9192
/**
9293
* @brief WiFi stack configuration parameters passed to esp_wifi_init call.

esp32/include/hal/esp32/include/hal/cache_ll.h

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,66 @@
1919
extern "C" {
2020
#endif
2121

22+
/**
23+
* @brief enable a cache unit
24+
*
25+
* @param cache_id cache ID (when l1 cache is per core)
26+
*/
27+
__attribute__((always_inline))
28+
static inline void cache_ll_l1_enable_cache(uint32_t cache_id)
29+
{
30+
HAL_ASSERT(cache_id == 0 || cache_id == 1);
31+
32+
if (cache_id == 0) {
33+
DPORT_REG_SET_BIT(DPORT_PRO_CACHE_CTRL_REG, DPORT_PRO_CACHE_ENABLE);
34+
} else {
35+
DPORT_REG_SET_BIT(DPORT_APP_CACHE_CTRL_REG, DPORT_APP_CACHE_ENABLE);
36+
}
37+
}
38+
39+
/**
40+
* @brief disable a cache unit
41+
*
42+
* @param cache_id cache ID (when l1 cache is per core)
43+
*/
44+
__attribute__((always_inline))
45+
static inline void cache_ll_l1_disable_cache(uint32_t cache_id)
46+
{
47+
if (cache_id == 0) {
48+
while (DPORT_GET_PERI_REG_BITS2(DPORT_PRO_DCACHE_DBUG0_REG, DPORT_PRO_CACHE_STATE, DPORT_PRO_CACHE_STATE_S) != 1){
49+
;
50+
}
51+
DPORT_REG_CLR_BIT(DPORT_PRO_CACHE_CTRL_REG, DPORT_PRO_CACHE_ENABLE);
52+
} else {
53+
while (DPORT_GET_PERI_REG_BITS2(DPORT_APP_DCACHE_DBUG0_REG, DPORT_APP_CACHE_STATE, DPORT_APP_CACHE_STATE_S) != 1){
54+
;
55+
}
56+
DPORT_REG_CLR_BIT(DPORT_APP_CACHE_CTRL_REG, DPORT_APP_CACHE_ENABLE);
57+
}
58+
}
59+
60+
/**
61+
* @brief Get the status of cache if it is enabled or not
62+
*
63+
* @param cache_id cache ID (when l1 cache is per core)
64+
* @param type see `cache_type_t`
65+
* @return enabled or not
66+
*/
67+
__attribute__((always_inline))
68+
static inline bool cache_ll_l1_is_cache_enabled(uint32_t cache_id, cache_type_t type)
69+
{
70+
HAL_ASSERT(cache_id == 0 || cache_id == 1);
71+
(void) type; //On 32 it shares between I and D cache
72+
73+
bool enabled;
74+
if (cache_id == 0) {
75+
enabled = DPORT_REG_GET_BIT(DPORT_PRO_CACHE_CTRL_REG, DPORT_PRO_CACHE_ENABLE);
76+
} else {
77+
enabled = DPORT_REG_GET_BIT(DPORT_APP_CACHE_CTRL_REG, DPORT_APP_CACHE_ENABLE);
78+
}
79+
return enabled;
80+
}
81+
2282
/**
2383
* @brief Get the buses of a particular cache that are mapped to a virtual address range
2484
*

esp32/include/hal/include/hal/cache_hal.h

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11

22
/*
3-
* SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
3+
* SPDX-FileCopyrightText: 2021-2023 Espressif Systems (Shanghai) CO LTD
44
*
55
* SPDX-License-Identifier: Apache-2.0
66
*/
77

88
#pragma once
99

10+
#include <stdbool.h>
1011
#include "hal/cache_types.h"
1112

1213
#ifdef __cplusplus
@@ -39,6 +40,35 @@ void cache_hal_disable(cache_type_t type);
3940
*/
4041
void cache_hal_enable(cache_type_t type);
4142

43+
/**
44+
* @brief Suspend cache
45+
*
46+
* Suspend the ICache or DCache or both,suspends the CPU access to cache for a while, without invalidation.
47+
*
48+
* @param type see `cache_type_t`
49+
*
50+
* @return Current status of corresponding Cache(s)
51+
*/
52+
void cache_hal_suspend(cache_type_t type);
53+
54+
/**
55+
* @brief Resume cache
56+
*
57+
* Resume the ICache or DCache or both.
58+
*
59+
* @param type see `cache_type_t`
60+
*/
61+
void cache_hal_resume(cache_type_t type);
62+
63+
/**
64+
* @brief Check if corresponding cache is enabled or not
65+
*
66+
* @param type see `cache_type_t`
67+
*
68+
* @return true: enabled; false: disabled
69+
*/
70+
bool cache_hal_is_cache_enabled(cache_type_t type);
71+
4272
/**
4373
* @brief Invalidate cache supported addr
4474
*

esp32/include/soc/esp32/include/soc/soc.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@
159159
#define CPU_CLK_FREQ_MHZ_BTLD (80) // The cpu clock frequency (in MHz) to set at 2nd stage bootloader system clock configuration
160160
#define CPU_CLK_FREQ APB_CLK_FREQ //this may be incorrect, please refer to ESP_DEFAULT_CPU_FREQ_MHZ
161161
#define APB_CLK_FREQ ( 80*1000000 ) //unit: Hz
162-
#define MODEM_REQUIRED_MIN_APB_CLK_FREQ ( 80*1000000 )
163162
#define REF_CLK_FREQ ( 1000000 )
164163
#define UART_CLK_FREQ APB_CLK_FREQ
165164
#define WDT_CLK_FREQ APB_CLK_FREQ

esp32/include/soc/esp32/include/soc/soc_caps.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@
138138
#endif
139139

140140
/*-------------------------- CACHE CAPS --------------------------------------*/
141-
#define SOC_SHARED_IDCACHE_SUPPORTED 1 //Shared Cache for both instructions and data
141+
#define SOC_SHARED_IDCACHE_SUPPORTED 1 //Shared Cache for both instructions and data within one core
142+
#define SOC_IDCACHE_PER_CORE 1 //Independent Cache unit pre core
142143

143144
/*-------------------------- CPU CAPS ----------------------------------------*/
144145
#define SOC_CPU_CORES_NUM 2
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
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.
14+
==============================================================================*/
15+
16+
#ifndef SIGNAL_MICRO_KERNELS_DELAY_FLEXBUFFERS_GENERATED_DATA_H_
17+
#define SIGNAL_MICRO_KERNELS_DELAY_FLEXBUFFERS_GENERATED_DATA_H_
18+
19+
extern const int g_gen_data_size_3_delay;
20+
extern const unsigned char g_gen_data_3_delay[];
21+
22+
extern const int g_gen_data_size_5_delay;
23+
extern const unsigned char g_gen_data_5_delay[];
24+
25+
#endif // SIGNAL_MICRO_KERNELS_DELAY_FLEXBUFFERS_GENERATED_DATA_H_
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
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.
14+
==============================================================================*/
15+
16+
#ifndef SIGNAL_MICRO_KERNELS_TEST_DATA_GENERATION_GENERATE_ENERGY_FLEXBUFFERS_DATA_H_
17+
#define SIGNAL_MICRO_KERNELS_TEST_DATA_GENERATION_GENERATE_ENERGY_FLEXBUFFERS_DATA_H_
18+
19+
extern const int g_gen_data_size_start_index_2_end_index_4;
20+
extern const unsigned char g_gen_data_start_index_2_end_index_4[];
21+
22+
extern const int g_gen_data_size_start_index_0_end_index_4;
23+
extern const unsigned char g_gen_data_start_index_0_end_index_4[];
24+
25+
extern const int g_gen_data_size_start_index_4_end_index_8;
26+
extern const unsigned char g_gen_data_start_index_4_end_index_8[];
27+
28+
#endif // SIGNAL_MICRO_KERNELS_TEST_DATA_GENERATION_GENERATE_ENERGY_FLEXBUFFERS_DATA_H_
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
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.
14+
==============================================================================*/
15+
16+
#ifndef SIGNAL_MICRO_KERNELS_TEST_DATA_GENERATION_GENERATE_FILTER_BANK_FLEXBUFFERS_DATA_H_
17+
#define SIGNAL_MICRO_KERNELS_TEST_DATA_GENERATION_GENERATE_FILTER_BANK_FLEXBUFFERS_DATA_H_
18+
19+
extern const int g_gen_data_size_filter_bank_32_channel;
20+
extern const unsigned char g_gen_data_filter_bank_32_channel[];
21+
22+
extern const int g_gen_data_size_filter_bank_16_channel;
23+
extern const unsigned char g_gen_data_filter_bank_16_channel[];
24+
25+
#endif // SIGNAL_MICRO_KERNELS_TEST_DATA_GENERATION_GENERATE_FILTER_BANK_FLEXBUFFERS_DATA_H_
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
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.
14+
==============================================================================*/
15+
16+
#ifndef SIGNAL_MICRO_KERNELS_TEST_DATA_GENERATION_GENERATE_FILTER_BANK_LOG_FLEXBUFFERS_DATA_H_
17+
#define SIGNAL_MICRO_KERNELS_TEST_DATA_GENERATION_GENERATE_FILTER_BANK_LOG_FLEXBUFFERS_DATA_H_
18+
19+
extern const int g_gen_data_size_filter_bank_log_scale_1600_correction_bits_3;
20+
extern const unsigned char
21+
g_gen_data_filter_bank_log_scale_1600_correction_bits_3[];
22+
23+
extern const int g_gen_data_size_filter_bank_log_scale_32768_correction_bits_5;
24+
extern const unsigned char
25+
g_gen_data_filter_bank_log_scale_32768_correction_bits_5[];
26+
27+
#endif // SIGNAL_MICRO_KERNELS_TEST_DATA_GENERATION_GENERATE_FILTER_BANK_LOG_FLEXBUFFERS_DATA_H_
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
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.
14+
==============================================================================*/
15+
16+
#ifndef SIGNAL_MICRO_KERNELS_TEST_DATA_GENERATION_GENERATE_FILTER_BANK_SPECTRAL_SUBTRACTION_FLEXBUFFERS_DATA_H_
17+
#define SIGNAL_MICRO_KERNELS_TEST_DATA_GENERATION_GENERATE_FILTER_BANK_SPECTRAL_SUBTRACTION_FLEXBUFFERS_DATA_H_
18+
19+
extern const int g_gen_data_size_filter_bank_spectral_subtraction_32_channel;
20+
extern const unsigned char
21+
g_gen_data_filter_bank_spectral_subtraction_32_channel[];
22+
extern const int g_gen_data_size_filter_bank_spectral_subtraction_16_channel;
23+
extern const unsigned char
24+
g_gen_data_filter_bank_spectral_subtraction_16_channel[];
25+
26+
#endif // SIGNAL_MICRO_KERNELS_TEST_DATA_GENERATION_GENERATE_FILTER_BANK_SPECTRAL_SUBTRACTION_FLEXBUFFERS_DATA_H_

0 commit comments

Comments
 (0)