Skip to content

Commit 618b572

Browse files
authored
Merge branch 'espressif:master' into master
2 parents d47ce53 + ffb63db commit 618b572

File tree

1,376 files changed

+27300
-21284
lines changed

Some content is hidden

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

1,376 files changed

+27300
-21284
lines changed

.gitlab-ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,7 @@ include:
3030
- ".gitlab/ci/deploy.yml"
3131
- ".gitlab/ci/post_deploy.yml"
3232
- ".gitlab/ci/test-win.yml"
33+
- project: "ci/actions/common"
34+
file: "templates/idf/deploy-github.yml"
35+
- project: "ci/actions/common"
36+
file: "templates/idf/deploy-docs.yml"

.gitlab/CODEOWNERS

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
/components/esp_hal_ieee802154/ @esp-idf-codeowners/ieee802154
9999
/components/esp_hal_pmu/ @esp-idf-codeowners/power-management @esp-idf-codeowners/peripherals
100100
/components/esp_hal_rtc_timer/ @esp-idf-codeowners/power-management @esp-idf-codeowners/peripherals
101+
/components/esp_hal_security/ @esp-idf-codeowners/security @esp-idf-codeowners/peripherals
101102
/components/esp_hid/ @esp-idf-codeowners/bluetooth
102103
/components/esp_http_client/ @esp-idf-codeowners/app-utilities
103104
/components/esp_http_server/ @esp-idf-codeowners/app-utilities
@@ -133,8 +134,6 @@
133134
/components/fatfs/ @esp-idf-codeowners/storage
134135
/components/freertos/ @esp-idf-codeowners/system
135136
/components/hal/ @esp-idf-codeowners/peripherals
136-
/components/hal/test_apps/crypto/ @esp-idf-codeowners/peripherals @esp-idf-codeowners/security
137-
/components/hal/test_apps/tee/ @esp-idf-codeowners/peripherals @esp-idf-codeowners/security
138137
/components/heap/ @esp-idf-codeowners/system
139138
/components/http_parser/ @esp-idf-codeowners/app-utilities
140139
/components/ieee802154/ @esp-idf-codeowners/ieee802154

.gitlab/ci/common.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ variables:
382382
- MIRROR_REPO_URL="${LOCAL_GIT_MIRROR}/${CI_PROJECT_PATH}"
383383
- cd "${CI_PROJECT_DIR}"
384384
# since .cache exists in CI_PROJECT_DIR, so can't direct `git clone .`
385-
- git clone -b ${CI_MERGE_REQUEST_TARGET_BRANCH_NAME:-${CI_COMMIT_BRANCH}} --depth=1 --recursive --shallow-submodules "${MIRROR_REPO_URL}" tmp
385+
- git clone -b ${CI_MERGE_REQUEST_TARGET_BRANCH_NAME:-${CI_COMMIT_REF_NAME}} --depth=1 --recursive --shallow-submodules "${MIRROR_REPO_URL}" tmp
386386
- mv tmp/.git ./
387387
- rm -rf tmp
388388
- git reset --hard

.gitlab/ci/deploy.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -47,28 +47,6 @@ check_submodule_sync:
4747
- git submodule update --recursive
4848
- echo "IDF was cloned from ${PUBLIC_IDF_URL} completely"
4949

50-
push_to_github:
51-
extends:
52-
- .deploy_job_template
53-
- .before_script:minimal
54-
- .rules:protected:deploy
55-
needs:
56-
# submodule must be synced before pushing to github
57-
- check_submodule_sync
58-
tags: [ brew, github_sync ]
59-
variables:
60-
GIT_STRATEGY: fetch # use brew local mirror first
61-
GIT_DEPTH: 0 # github needs full record of commits
62-
script:
63-
- add_github_ssh_keys
64-
- git remote remove github &>/dev/null || true
65-
- git remote add github git@github.com:espressif/esp-idf.git
66-
- tools/ci/push_to_github.sh
67-
environment:
68-
name: push_to_github_production
69-
deployment_tier: production
70-
url: "https://github.com/espressif/esp-idf"
71-
7250
deploy_update_SHA_in_esp-dockerfiles:
7351
extends:
7452
- .deploy_job_template

.gitlab/ci/docs.yml

Lines changed: 1 addition & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ check_docs_lang_sync:
9595
parallel:
9696
matrix:
9797
- DOCLANG: ["en", "zh_CN"]
98-
DOCTGT: ["esp32", "esp32s2", "esp32s3", "esp32c3", "esp32c2", "esp32c6", "esp32c61", "esp32c5", "esp32h2", "esp32h4", "esp32h21", "esp32p4"]
98+
DOCTGT: ["esp32", "esp32s2", "esp32s3", "esp32s31", "esp32c3", "esp32c2", "esp32c6", "esp32c61", "esp32c5", "esp32h2", "esp32h4", "esp32h21", "esp32p4"]
9999

100100
check_docs_gh_links:
101101
image: $ESP_IDF_DOC_ENV_IMAGE
@@ -143,77 +143,6 @@ build_docs_html_partial:
143143
- DOCLANG: "zh_CN"
144144
DOCTGT: "esp32p4"
145145

146-
.deploy_docs_template:
147-
image: $ESP_IDF_DOC_ENV_IMAGE
148-
variables:
149-
DOCS_BUILD_DIR: "${IDF_PATH}/docs/_build/"
150-
PYTHONUNBUFFERED: 1
151-
# ensure all tags are fetched, need to know the latest/stable tag for the docs
152-
GIT_STRATEGY: clone
153-
GIT_DEPTH: 0
154-
stage: test_deploy
155-
tags:
156-
- brew
157-
- amd64
158-
script:
159-
# ensure all tags are fetched, need to know the latest/stable tag for the docs
160-
- git fetch --tags --prune
161-
- add_doc_server_ssh_keys $DOCS_DEPLOY_PRIVATEKEY $DOCS_DEPLOY_SERVER $DOCS_DEPLOY_SERVER_USER
162-
- export GIT_VER=$(git describe --always ${PIPELINE_COMMIT_SHA} --)
163-
- deploy-docs
164-
165-
# stage: test_deploy
166-
deploy_docs_preview:
167-
extends:
168-
- .deploy_docs_template
169-
rules:
170-
- <<: *if-label-build_docs
171-
- <<: *if-label-docs_full
172-
- <<: *if-dev-push
173-
changes: *patterns-docs-preview
174-
needs:
175-
- job: build_docs_html_partial
176-
optional: true
177-
- job: build_docs_html_full
178-
optional: true
179-
variables:
180-
TYPE: "preview"
181-
# older branches use DOCS_DEPLOY_KEY, DOCS_SERVER, DOCS_SERVER_USER, DOCS_PATH for preview server so we keep these names for 'preview'
182-
DOCS_DEPLOY_PRIVATEKEY: "$DOCS_DEPLOY_KEY"
183-
DOCS_DEPLOY_SERVER: "$DOCS_SERVER"
184-
DOCS_DEPLOY_SERVER_USER: "$DOCS_SERVER_USER"
185-
DOCS_DEPLOY_PATH: "$DOCS_PATH"
186-
DOCS_DEPLOY_URL_BASE: "https://$DOCS_PREVIEW_SERVER_URL/docs/esp-idf"
187-
environment:
188-
name: deploy_docs_preview
189-
deployment_tier: staging
190-
url: "https://$DOCS_PREVIEW_SERVER_URL/docs/esp-idf"
191-
192-
# stage: post_deploy
193-
deploy_docs_production:
194-
# The DOCS_PROD_* variables used by this job are "Protected" so these branches must all be marked "Protected" in Gitlab settings
195-
extends:
196-
- .deploy_docs_template
197-
- .rules:protected:deploy
198-
stage: post_deploy
199-
dependencies: # set dependencies to null to avoid missing artifacts issue
200-
needs: # ensure runs after push_to_github succeeded
201-
- build_docs_html_full
202-
- job: push_to_github
203-
artifacts: false
204-
variables:
205-
TYPE: "preview"
206-
DOCS_DEPLOY_PRIVATEKEY: "$DOCS_PROD_DEPLOY_KEY"
207-
DOCS_DEPLOY_SERVER: "$DOCS_PROD_SERVER"
208-
DOCS_DEPLOY_SERVER_USER: "$DOCS_PROD_SERVER_USER"
209-
DOCS_DEPLOY_PATH: "$DOCS_PROD_PATH"
210-
DOCS_DEPLOY_URL_BASE: "https://docs.espressif.com/projects/esp-idf"
211-
DEPLOY_STABLE: 1
212-
environment:
213-
name: deploy_docs_production
214-
deployment_tier: production
215-
url: "https://docs.espressif.com/projects/esp-idf"
216-
217146
check_doc_links:
218147
extends:
219148
- .build_docs_template

.idf_build_apps.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ manifest_filepatterns = [
4343
]
4444

4545
# dependency-driven build
46-
deactivate_dependency_driven_build_by_components = [
46+
deactivate_dependency_driven_build_by_components = []
47+
48+
common_components = [
4749
'cxx',
4850
'esp_common',
4951
'esp_hw_support',

COMPATIBILITY.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ Supported since ESP-IDF v4.3.
8282
| release/v5.1 | v5.1.3+ | v5.1.3 |
8383
| release/v5.2 and above | v5.2+ | v5.2 |
8484

85+
Note: For users that needs to use a different primary console output than the default UART0, please upgrade to v5.0.8+, v5.1.6+, v5.2.4+, v5.3.2+, v5.4 and above. See advisory: [AR2025-006](https://documentation.espressif.com/AR2025-006_Usage_Instructions_for_Configuring_the_Console_Output_Channel_for_the_ESP32-C3_Chip_Revision_v1.1.html).
86+
8587
### ESP32-S3
8688

8789
#### v0.1, v0.2
@@ -154,11 +156,27 @@ Supported since ESP-IDF v5.3.
154156

155157
### ESP32-C5
156158

157-
Supported since ESP-IDF v5.5.1.
159+
#### v1.0
160+
161+
Supported since ESP-IDF v5.5.2.
162+
163+
#### v1.2
164+
165+
| Release branch | Recommended | Required |
166+
|------------------------|-------------|----------|
167+
| release/v5.5 and above | v5.5.2+ | v5.5.2 |
158168

159169
### ESP32-C61
160170

161-
Supported since ESP-IDF v5.5.1.
171+
#### v1.0
172+
173+
Supported since ESP-IDF v5.5.2.
174+
175+
#### v1.1
176+
177+
| Release branch | Recommended | Required |
178+
|------------------------|-------------|----------|
179+
| release/v5.5 and above | v5.5.2+ | v5.5.2 |
162180

163181
### ESP32-H4
164182

COMPATIBILITY_CN.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@
8282
| release/v5.1 | v5.1.3+ | v5.1.3 |
8383
| release/v5.2 及以上 | v5.2+ | v5.2 |
8484

85+
注意:对于需要使用不同于默认 UART0 的主控制台输出的用户,请升级到 v5.0.8+、v5.1.6+、v5.2.4+、v5.3.2+、v5.4 及以上版本。参阅公告: [AR2025-006](https://documentation.espressif.com/AR2025-006_%E5%85%B3%E4%BA%8EESP32-C3%E8%8A%AF%E7%89%87%E7%89%88%E6%9C%ACv1.1%E9%85%8D%E7%BD%AEconsole%E8%BE%93%E5%87%BA%E9%80%9A%E9%81%93%E7%9A%84%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9.html).
86+
8587
### ESP32-S3
8688

8789
#### v0.1, v0.2
@@ -154,11 +156,27 @@
154156

155157
### ESP32-C5
156158

157-
从 ESP-IDF v5.5.1 开始支持。
159+
#### v1.0
160+
161+
从 ESP-IDF v5.5.2 开始支持。
162+
163+
#### v1.2
164+
165+
| 发布分支 | 推荐版本 | 需求版本 |
166+
|---------------------|----------|---------|
167+
| release/v5.5 及以上 | v5.5.2+ | v5.5.2 |
158168

159169
### ESP32-C61
160170

161-
从 ESP-IDF v5.5.1 开始支持。
171+
#### v1.0
172+
173+
从 ESP-IDF v5.5.2 开始支持。
174+
175+
#### v1.1
176+
177+
| 发布分支 | 推荐版本 | 需求版本 |
178+
|---------------------|----------|---------|
179+
| release/v5.5 及以上 | v5.5.2+ | v5.5.2 |
162180

163181
### ESP32-H4
164182

Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ mainmenu "Espressif IoT Development Framework Configuration"
159159
config IDF_TARGET_LINUX
160160
bool
161161
default "y" if IDF_TARGET="linux"
162+
select FREERTOS_UNICORE
162163

163164
config IDF_FIRMWARE_CHIP_ID
164165
hex

components/app_trace/port/port_uart.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@
1111
#include "esp_log.h"
1212
#include "esp_cpu.h"
1313
#include "esp_attr.h"
14-
#include "esp_private/uart_share_hw_ctrl.h"
1514
#include "hal/uart_hal.h"
1615
#include "hal/gpio_hal.h"
1716
#include "driver/uart.h"
1817
#include "hal/uart_periph.h"
1918
#include "esp_clk_tree.h"
20-
#include "esp_private/esp_clk_tree_common.h"
2119
#include "soc/gpio_periph.h"
2220
#include "esp_rom_gpio.h"
2321
#include "hal/uart_ll.h"
2422
#include "esp_intr_alloc.h"
2523
#include "esp_heap_caps.h"
24+
#include "esp_private/esp_clk_tree_common.h"
2625
#include "esp_private/esp_gpio_reserve.h"
26+
#include "esp_private/periph_ctrl.h"
2727

2828
#include "esp_app_trace_port.h"
2929
#include "esp_app_trace_util.h"
@@ -244,11 +244,11 @@ static esp_err_t esp_apptrace_uart_init(void *hw_data, const esp_apptrace_config
244244

245245
uart_data->hal_ctx.dev = UART_LL_GET_HW(uart_config->uart_num);
246246

247-
HP_UART_BUS_CLK_ATOMIC() {
247+
PERIPH_RCC_ATOMIC() {
248248
uart_ll_enable_bus_clock(uart_config->uart_num, true);
249249
uart_ll_reset_register(uart_config->uart_num);
250250
}
251-
HP_UART_SRC_CLK_ATOMIC() {
251+
PERIPH_RCC_ATOMIC() {
252252
uart_ll_sclk_enable(uart_data->hal_ctx.dev);
253253
}
254254

@@ -260,7 +260,7 @@ static esp_err_t esp_apptrace_uart_init(void *hw_data, const esp_apptrace_config
260260
/* Initialize UART HAL (sets default 8N1 mode) */
261261
uart_hal_init(&uart_data->hal_ctx, uart_config->uart_num);
262262

263-
HP_UART_SRC_CLK_ATOMIC() {
263+
PERIPH_RCC_ATOMIC() {
264264
uart_hal_set_sclk(&uart_data->hal_ctx, UART_SCLK_DEFAULT);
265265
uart_hal_set_baudrate(&uart_data->hal_ctx, uart_config->baud_rate, sclk_hz);
266266
}
@@ -338,10 +338,10 @@ static esp_err_t esp_apptrace_uart_init(void *hw_data, const esp_apptrace_config
338338
heap_caps_free(uart_data->tx_ring.buffer);
339339
err_init_ring_buff:
340340
esp_clk_tree_enable_src(UART_SCLK_DEFAULT, false);
341-
HP_UART_SRC_CLK_ATOMIC() {
341+
PERIPH_RCC_ATOMIC() {
342342
uart_ll_sclk_disable(uart_data->hal_ctx.dev);
343343
}
344-
HP_UART_BUS_CLK_ATOMIC() {
344+
PERIPH_RCC_ATOMIC() {
345345
uart_ll_enable_bus_clock(uart_config->uart_num, false);
346346
}
347347
esp_gpio_revoke(gpio_mask);

0 commit comments

Comments
 (0)