Commit Graph

31670 Commits

Author SHA1 Message Date
Darian Leung
57eb41ce83 refactor(freertos): Call TLSP deletion callback from portCLEAN_UP_TCB()
Previously, TLSP deletion callbacks were...

- Stored in a seprate TCB member "pvThreadLocalStoragePointersDelCallback"
- Called separately via multipole prvDeleteTLS() insertions in tasks.c

This commit refactors how TLSP deletion callbacks are stored and called:

- TLSP deletion callbacks are now stored in "pvThreadLocalStoragePointers"
directly. configNUM_THREAD_LOCAL_STORAGE_POINTERS is doubled in size so that
the deletion callbacks are stored in the latter half of the array

- The callbacks are now called via "portCLEAN_UP_TCB()". As such, the
prvDeleteTLS() additions are no longer needed and the function can be removed

- Removed some legacy TLSP tests using the old method of storing the callback
pointers.

This commit reduces the source code diff between IDF FreeRTOS and upstream
vanilla FreeRTOS, in preparation for v10.5.1 upgrade.
2023-08-24 19:32:06 +08:00
Darian Leung
5f2443b7d1 refactor(freertos): Remove portCLEAN_UP_COPROC()
portCLEAN_UP_COPROC() was an IDF specific addition to FreeRTOS, where the
macro was called from prvDeleteTCB() to clean up the coprocessor context of a
deleted task.

This commit removes portCLEAN_UP_COPROC(). The coprocessor cleanup routine
(i.e., vPortCleanUpCoprocArea()) is now called via portCLEAN_UP_TCB()->
vPortTCBPreDeleteHook().

This removes a minor code difference between IDF FreeRTOS and upstream.
2023-08-24 19:32:06 +08:00
Wan Lei
623c4e653a Merge branch 'fix/spi_polling_api_buslock_logic' into 'master'
fix(spi_master): polling_transmit forgot release bus lock when alloc DMA buffer failed

Closes IDFGH-10608

See merge request espressif/esp-idf!25457
2023-08-24 16:27:49 +08:00
Jiang Jiang Jian
b39180d7a1 Merge branch 'bugfix/m_ble_issues_bugfix_c2' into 'master'
update btlib to 7d0ce3ba, some esp32c2 issues bugfixed

See merge request espressif/esp-idf!25428
2023-08-24 14:13:05 +08:00
Chen Jian Hua
cce55cf071 Merge branch 'bugfix/fix_bleqabr23_457' into 'master'
fix(bt/bluedroid): Fixed GATTC cache address save when list is full

See merge request espressif/esp-idf!25362
2023-08-24 14:09:01 +08:00
morris
49c49f9480 Merge branch 'feature/esp_etm_core_esp32p4' into 'master'
feat(etm): add core driver support for esp32-p4

Closes IDF-7814 and IDF-7478

See merge request espressif/esp-idf!25361
2023-08-24 12:59:30 +08:00
Chen Jian Hua
70071a334f Merge branch 'bugfix/fix_bleqabr23_181_esp32' into 'master'
Support BLE RX error packet count record on esp32

See merge request espressif/esp-idf!25316
2023-08-24 11:12:36 +08:00
Wang Fang
db86b59330 Merge branch 'docs/update_cn_trans_for_22755' into 'master'
docs: Update CN translation for auto_suspend.inc (!22755)

Closes DOC-5790

See merge request espressif/esp-idf!25236
2023-08-24 11:00:46 +08:00
Shang Zhou
af6f8c4c8c docs: Update CN translation for auto_suspend.inc (!22755) 2023-08-24 11:00:45 +08:00
wanlei
f62b025f93 fix(spi_master): polling_transmit forgot release bus lock when alloc DMA buffer failed
Close https://github.com/espressif/esp-idf/issues/11845
2023-08-24 02:09:08 +00:00
Rocha Euripedes
9552ef012d Merge branch 'ci/publish_connect_fix' into 'master'
Fix publish connect mqtt test

See merge request espressif/esp-idf!25479
2023-08-24 08:30:53 +08:00
Ren Pei Ying
809ca61087 Merge branch 'docs_add_CN_trans_for_contribute/esp-idf-tests-with-pytest.rst' into 'master'
docs: add CN translation for contribute/esp-idf-tests-with-pytest.rst

Closes DOC-5911

See merge request espressif/esp-idf!25205
2023-08-24 05:32:12 +08:00
Ren Pei Ying
3e1a6afb00 docs: add CN translation for contribute/esp-idf-tests-with-pytest.rst 2023-08-24 05:32:11 +08:00
Darian
4962bb51dc Merge branch 'change/freertos_clean_up_tcb_macro' into 'master'
change(freertos): Deprecate usage of vPortCleanUpTCB() by applications

Closes IDF-7256

See merge request espressif/esp-idf!25480
2023-08-24 01:46:20 +08:00
Mahavir Jain
77fb44a489 Merge branch 'fix/fix_host_based_security_workflow_documentation' into 'master'
fix(security): Fixed the host-based security workflows

See merge request espressif/esp-idf!25460
2023-08-23 23:25:58 +08:00
Mahavir Jain
e3d6a325f8 Merge branch 'fix/esp_prov_recent_changes' into 'master'
fix(esp_prov): update devices tuple usage due to API deprecations

See merge request espressif/esp-idf!25470
2023-08-23 23:17:54 +08:00
Mahavir Jain
dbd7c4b372 Merge branch 'ci/fix_example_test_advanced_ota' into 'master'
ci(fix): example test advanced_https_ota_example_bluedroid_gatts

Closes IDFCI-1791

See merge request espressif/esp-idf!25486
2023-08-23 23:10:55 +08:00
Chen Ji Chang
9db2ffd4fb Merge branch 'fix/pcnt_zero_input_init' into 'master'
feat(PCNT): Add new api of clear signal

See merge request espressif/esp-idf!25372
2023-08-23 20:15:59 +08:00
Rahul Tank
82cceabc6e Merge branch 'feature/walkthrough_for_blecent' into 'master'
doc(nimble): Added the tutorial for blecent example.

See merge request espressif/esp-idf!25378
2023-08-23 19:46:38 +08:00
Chen Jian Xing
a7bd04b120 Merge branch 'contrib/github_pr_12039' into 'master'
docs(iperf): Update documentation with console interface details(GitHub PR)

Closes IDFGH-10832

See merge request espressif/esp-idf!25301
2023-08-23 19:25:22 +08:00
Darian Leung
39cf3638ae change(freertos): Deprecate usage of vPortCleanUpTCB() by applications
Previously, if CONFIG_FREERTOS_ENABLE_STATIC_TASK_CLEAN_UP was enabled, users
would provide a definition for a vPortCleanUpTCB() hook function that is called
right before a task's memory is freed in prvDeleteTCB(). However,
vPortCleanUpTCB() will be reclaimed by ESP-IDF for internal use in v6.0.

This commit introduces the following changes...

Introduced a new CONFIG_FREERTOS_TASK_PRE_DELETION_HOOK option:

- Provides the same pre-deletion hook functionality. But users now define
vTaskPreDeletionHook() instead.
- CONFIG_FREERTOS_ENABLE_STATIC_TASK_CLEAN_UP still exists, but is marked as
deprecated. This is to maintain compatibility with existing applications
that already define vPortCleanUpTCB().
- Removed redundant --wl --wrap workaround with vPortCleanUpTCB()
- Added todo notes to remove support for user defined vPortCleanUpTCB()
completely in v6.0.
- Updated test cases to use new CONFIG_FREERTOS_TASK_PRE_DELETION_HOOK option

Freed up portCLEAN_UP_TCB() to call a new internal vPortTCBPreDeleteHook():

- vPortTCBPreDeleteHook() now replaces the previous "wrapped" implementation
of vPortCleanUpTCB().
- vPortTCBPreDeleteHook() is an internal task pre-delete hook for IDF FreeRTOS
ports to inject some pre-deletion operations.
- Internal pre-delete hook now invokes user provided vTaskPreDeletionHook()
if enabled.
- Relocated vPortTCBPreDeleteHook() to correct section in port.c
2023-08-23 17:50:08 +08:00
Wang Fang
9d8b121ef2 Merge branch 'docs/fix_formatting_issues_in_spi_flash_concurrency_doc' into 'master'
docs: fix formatting issues in spi_flash_concurrency document

See merge request espressif/esp-idf!24619
2023-08-23 17:08:39 +08:00
Euripedes Rocha
d80a2881d1 ci: Fix publish connect mqtt test
Minor changes necessary to make the test run correctly
2023-08-23 10:04:19 +02:00
morris
911c388cf8 feat(etm): add core driver support for esp32-p4
esp_etm core driver support:
- channel allocator
- gpio etm sub driver
- gptimer etm sub driver
2023-08-23 15:11:56 +08:00
morris
3b50c716d8 Merge branch 'feature/gptimer_ll_enable_reset' into 'master'
HW-Support: Add Atomic Code Block for Reset and Clock Control

See merge request espressif/esp-idf!25401
2023-08-23 15:11:42 +08:00
Shu Chen
7af7723d46 Merge branch 'feature/openthread_disable_nd6_timer' into 'master'
openthread: disable lwip nd6 timer in openthread sleepy device

See merge request espressif/esp-idf!24653
2023-08-23 14:47:49 +08:00
Chen Yudong
4601d383a1 ci(fix): example test advanced_https_ota_example_bluedroid_gatts 2023-08-23 14:01:12 +08:00
morris
329bc7e5e9 Merge branch 'feature/mcpwm_interrupt_priority' into 'master'
feat(MCPWM): Support set interrupt priority

Closes IDF-7952

See merge request espressif/esp-idf!25364
2023-08-23 13:43:24 +08:00
Chen Jichang
d7d87813ad fix(PCNT): Add zero input gpio enable flag
The default zero input gpio num is 0. Users need to set it additionally
when not use zero input signal. It may become a breaking change.
Add an enable flag to avoid it.
2023-08-23 12:08:15 +08:00
Chen Jichang
713324ff9d feat(MCPWM): Support set interrupt priority 2023-08-23 10:44:34 +08:00
luomanruo
a2620e7588 ble: update btlib to f9db7b90, some esp32c2 issues bugfixed 2023-08-23 10:20:01 +08:00
Sudeep Mohanty
52bca70b1a Merge branch 'feature/freertos_dual_core_riscv_port' into 'master'
feat(freertos): Added changes for multi-core RISC-V port for FreeRTOS

Closes IDF-7566, IDF-7879, and IDF-2393

See merge request espressif/esp-idf!25123
2023-08-23 09:45:47 +08:00
Radim Karniš
e3eb2ea9cc Merge branch 'docs/uninstall_idf' into 'master'
docs(idf-tools): Add uninstallation instructions

Closes IDFGH-9768

See merge request espressif/esp-idf!25313
2023-08-23 05:03:51 +08:00
Cai Xin Ying
fc597c04cf Merge branch 'docs/update_security_and_contribute' into 'master'
docs: update format issues for both EN and CN under security and contribute folder

Closes DOC-5904

See merge request espressif/esp-idf!25109
2023-08-22 23:59:45 +08:00
Cai Xin Ying
bcb87c4b8f docs: update format issues for both EN and CN under security and contribute folder 2023-08-22 23:59:44 +08:00
Fu Hanxi
3f8400ef7c ci: add esp32 ethernet custom test 2023-08-22 16:36:25 +02:00
Cai Xin Ying
bbfedfc447 Merge branch 'docs/update_api-reference/bluetooth' into 'master'
docs: update format issues for EN and CN files under api-reference/bluetooth folder

Closes DOC-5657

See merge request espressif/esp-idf!24740
2023-08-22 22:06:19 +08:00
Wang Meng Yang
8466930ac2 Merge branch 'bugfix/fix_bleqabr23_486' into 'master'
fix(bt/bluedroid): Fixed BLE disconnect event report when disconnecting

See merge request espressif/esp-idf!25370
2023-08-22 21:17:33 +08:00
Rahul Tank
94234f00f4 Merge branch 'feature/periodic_adv_enhancement' into 'master'
NimBLE : Added periodic Adv Feature Updates in BLE 5.3

See merge request espressif/esp-idf!20474
2023-08-22 19:55:23 +08:00
Jiang Jiang Jian
514d9a8594 Merge branch 'docs/update_wifi_and_wpa_supplicant_documentation' into 'master'
Docs: Update wifi and wpa_supplicant documentation

See merge request espressif/esp-idf!24029
2023-08-22 19:29:37 +08:00
Aditya Patwardhan
388a61c7b7 fix(security): Fixed the host-based security workflows 2023-08-22 15:05:14 +05:30
Nachiket Kukade
69cfe14622 Merge branch 'bugfix/ignore_eapol_nonkey' into 'master'
Ignore EAPOL non-key frames in EAPOL txdone callback

Closes WIFIBUG-104

See merge request espressif/esp-idf!25420
2023-08-22 17:25:01 +08:00
harshal.patil
37303266f0
fix(esp_prov): update devices tuple usage due to API deprecations
- a recent commit fixed the API deprecations,
and the BLEDevice object now needs to be accessed through a tuple.
- thus the changes were made in the code wherein the object was used,
but updating the usage in the condition when de
vname is not None got skipped.
2023-08-22 14:44:38 +05:30
morris
4e143adf9d docs(hal): update readme about the usage of the RCC macros 2023-08-22 17:05:35 +08:00
morris
035c7c145c feat(clk_cali): always enable timer group0 for clock calibration
Calibration registers are located in the timer group0,
this commit is going to always enable it when the calibration is used by app
2023-08-22 17:05:35 +08:00
morris
71cf16ec01 feat(gptimer): use RCC atomic block to enable/reset peripheral 2023-08-22 17:05:35 +08:00
morris
a9c813ca3e feat(hw_support): add atomic code block for peripheral bus clock and reset 2023-08-22 17:05:35 +08:00
xiaqilin
c84cbd5e65 feat(openthread): disable lwip nd6 in openthread sleepy device 2023-08-22 08:11:41 +00:00
Wan Lei
7f85830a3b Merge branch 'fix/ci_increase_timeout_i2c_legacy_multi_test' into 'master'
fix(ci): add timeout for i2c legacy multi_board test

See merge request espressif/esp-idf!25450
2023-08-22 16:09:07 +08:00
caixinying-git
db241482a6 docs: update format issues for EN and CN files under api-reference/bluetooth folder 2023-08-22 16:02:33 +08:00