Commit Graph

24232 Commits

Author SHA1 Message Date
Darian Leung
1625a3aae2 freertos: Fix event group task list race condition
FreeRTOS synchronization primitives (e.g., queues, eventgroups) use various event lists (i.e., task lists) to track what
tasks are blocked on a current primitive. Usually these event lists are accessed via one of the event lists functions
(such as vTask[PlaceOn|RemoveFrom]UnorderedEventList()), which in turn ensure that the global task list spinlock
(xTaskQueueMutex) is taken when accessing these lists.

However, some functions in event_groups.c manually traverse their event lists. Thus if a tick interrupt occurs on
another core during traversal and that tick interrupt unblocks a task on the event list being traversed, the event list
will be corrupted.

This commit modifies the following event_groups.c functions so that they take the global task list lock before
traversing their event list.

- xEventGroupSetBits()
- vEventGroupDelete()
2022-06-30 20:12:26 +08:00
Mahavir Jain
3df4c01d62 Merge branch 'ci/remove_redundant_jobs' into 'master'
ci: remove redundant OTA examples jobs

See merge request espressif/esp-idf!18721
2022-06-30 19:27:30 +08:00
Darian Leung
5e29b1c90d openthread: Increase size of app parititon in ot_br example 2022-06-30 18:54:20 +08:00
Marek Fiala
90a69c4490 Tools: --disable-* argument for removing features
Optional argument --disable-* for removing features in install scripts.
2022-06-30 12:31:59 +02:00
Armando
f0e93ed0f8 psram: reserve dma pool in the step of heap max block
As heap block may be allocated into multiple non-contiguous chunks, to
reserve enough memory for dma/internal usage, we do the malloc in the
step of max available block.

On ESP32 we use this way, this commit follows this way, on ESP32S2 and
ESP32S3
2022-06-30 10:18:20 +00:00
Omar Chebib
cd48baf979 Refactor: move regi2c_*.h header files from esp_hw_support to soc component
When creating G0 layer, some regi2c_*.h headers were moved out from
esp_hw_support (G1) to soc (G0). In order to be consistent with that change,
move all the remaining regi2c_*.h headers to soc too.
2022-06-30 09:40:44 +00:00
Zhang Xiao Yan
be4d13d888 Merge branch 'docs/add_chiptype_link_gpio' into 'master'
docs: Add chip target and link to gpio.h

Closes DOC-3169

See merge request espressif/esp-idf!18623
2022-06-30 17:12:04 +08:00
GengYuchao
10fd1daa10 Add ETM clk gate defines for h2 2022-06-30 17:02:00 +08:00
GengYuchao
95c8d775d0 Update lib for h2 beta2 2022-06-30 17:02:00 +08:00
GengYuchao
b474c83840 Add support for esp32h2 beta2 2022-06-30 17:02:00 +08:00
GengYuchao
e1d07c0cf2 Support H2 periodic advertiser list option on h2 2022-06-30 17:02:00 +08:00
GengYuchao
07a470bccc Update ble lib for h2 beta1 2022-06-30 17:02:00 +08:00
GengYuchao
29a2c83173 Fix default option value 2022-06-30 17:02:00 +08:00
Jiang Jiang Jian
af83290002 Merge branch 'bugfix/fix_some_c2_ble_bugs' into 'master'
Fixed ESP32C2 BLE  bugs

See merge request espressif/esp-idf!18693
2022-06-30 16:39:50 +08:00
xueyunfei
46a68f4d41 wifi:bugfix for close sniffer mode when wifi stop 2022-06-30 15:47:50 +08:00
wangjialiang
45adb0ef24 ble_mesh: stack: Bugfix for proxy beacon send after reinit mesh 2022-06-30 07:41:23 +00:00
Mu Hai Dong
cfa3b03d8e Merge branch 'bugfix/fix_blufi_example_softap_current_connection_equal_zero_issue' into 'master'
bluetooth:fix two blufi example bugs

Closes IDFGH-6621

See merge request espressif/esp-idf!18298
2022-06-30 15:34:11 +08:00
Anton Maklakov
55dda77b98 build: add support ESP32-S3 in Clang build configuration 2022-06-30 14:03:26 +07:00
Anton Maklakov
6b0c756ebf tools: update tools.json for Clang 14
Closes https://github.com/espressif/clang-tidy-runner/issues/15
2022-06-30 14:02:54 +07:00
muhaidong
5dc221b0fc bluetooth: fix two blufi example bugs
1. Softap mode do not assign ip
2. SotAp current connection always show 0
2022-06-30 14:26:23 +08:00
Aleksei Apaseev
01f1aba2d0 ci: lift restriction on pygdbmi in panic test 2022-06-30 14:09:18 +08:00
morris
9d87d6ad50 Merge branch 'feature/check_public_header_targets' into 'master'
ci: check_public_headers: run the check for all targets

Closes IDF-3698

See merge request espressif/esp-idf!18765
2022-06-30 13:55:19 +08:00
David Čermák
5fcb860a10 Merge branch 'bugfix/lwip_gcc11_warnings' into 'master'
lw ip: suppress some GCC 11 warnings

See merge request espressif/esp-idf!18479
2022-06-30 13:48:47 +08:00
Jiang Jiang Jian
927f9e369a Merge branch 'bugfix/fix_stale_pmf_config' into 'master'
Fix stale PMF config in NVS issue

See merge request espressif/esp-idf!18469
2022-06-30 12:32:10 +08:00
Chen Yudong
7031d00aed CI: update submodule patterns 2022-06-30 12:15:31 +08:00
Mu Hai Dong
b0b44221ed Merge branch 'bugfix/fix_deinit_init_connect_fail_issue' into 'master'
esp_wifi: clear phy calibrated flag when phy pd memory deinit

Closes WIFI-4467, WIFI-4555, and WIFI-4543

See merge request espressif/esp-idf!18716
2022-06-30 12:13:36 +08:00
Omar Chebib
3c1b8cd75a ci: add a test for .eh_frame(_hdr) section for RISC-V targets 2022-06-30 02:51:37 +00:00
Omar Chebib
fa9856c815 espsystem: add missing eh_frame sections on esp32c2 2022-06-30 02:51:37 +00:00
Ivan Grokhotkov
4c3dec9705
ci: check_public_headers: run for all targets 2022-06-29 22:49:51 +02:00
Ivan Grokhotkov
fefbf6a5b3
ci: check_public_headers: exclude sections generated on RISC-V target 2022-06-29 22:48:16 +02:00
Ivan Grokhotkov
28ac778099
ci: check_public_headers: run the build in a temporary directory
this allows running multiple builds for different targets
2022-06-29 22:47:02 +02:00
Zim Kalinowski
2f81b96e45 Merge branch 'bugfix/fix_example_nvs_rw_value_with_freertos_smp' into 'master'
freertos-smp: fix nvs_rw_value and nvs_rw_value_cxx tests

Closes IDF-5275

See merge request espressif/esp-idf!18640
2022-06-30 04:11:39 +08:00
lsita
db90b512a1 Fix tinyusb_driver_install (dangling pointer) 2022-06-29 17:40:19 +02:00
Sudeep Mohanty
3cd2b67f84 Revert "hal: Fix incorrect spi_hal log usage"
This reverts commit a65165dd52.
2022-06-29 14:52:28 +00:00
Sudeep Mohanty
1d482a32df Revert "freertos-smp: fix nvs_rw_value and nvs_rw_value_cxx tests"
This reverts commit 0d9b130cb6f7e4c88d526be3c86941108329f442.
2022-06-29 14:52:28 +00:00
Sudeep Mohanty
6da5f113e9 freertos-smp: fix nvs_rw_value and nvs_rw_value_cxx tests
TBD
2022-06-29 14:52:28 +00:00
Zim Kalinowski
0660e4f2f9 Merge branch 'feature/force-non-smp-build-tests' into 'master'
freertos: Don't use FreeRTOS SMP build for partition nearly full warning test

See merge request espressif/esp-idf!18737
2022-06-29 22:52:25 +08:00
Adam Múdry
2dfaec3106 usb: Added MIDI example + fixed TinyUSB MIDI config
Closes https://github.com/espressif/esp-idf/issues/8541
2022-06-29 14:02:00 +00:00
Mu Hai Dong
8078092fae Merge branch 'docs/update_wifi_beacon_timeout_doc' into 'master'
docs: update wifi beacon timeout docs

Closes WIFI-4427 and IDFGH-7496

See merge request espressif/esp-idf!18379
2022-06-29 21:54:29 +08:00
daiziyan
f9f43b1860 docs: updated mdns
(cherry picked from commit 6737095bfb205867e096da8cf6cdf1f144800ee7)
2022-06-29 21:46:12 +08:00
gabsuren
d413a71f61 mdns: Remove internal component, examples, test and docs 2022-06-29 17:30:34 +04:00
0xFEEDC0DE64
d0c10eb83a Fix datatype conversion compiler error #9254 2022-06-29 14:39:36 +02:00
Shu Chen
85c668b7c7 build: move build_from_src options to env 2022-06-29 20:26:50 +08:00
Zim Kalinowski
70ee0885ad freertos: don't use FreeRTOS SMP build for partition nearly full warning test 2022-06-29 12:03:01 +00:00
xiongweichao
9531fae1d3 Fixed rtc watchdog timeout when waking up light sleep due to some functions not in IRAM 2022-06-29 19:56:47 +08:00
Euripedes Rocha
33fccf6405 [MQTT] - Adds esp-timer as dependency and change version.
- Current time is now from esp_timer.
2022-06-29 11:50:32 +00:00
Anton Maklakov
d2ce9abb2a lwip: suppress some GCC 11 warnings
Closes https://github.com/espressif/esp-idf/issues/9142
2022-06-29 11:42:09 +00:00
Harshit Malpani
e526e5593a ci: remove redundant OTA examples jobs 2022-06-29 16:30:02 +05:30
Roland Dobai
87c987920a Merge branch 'revert-2e817c44' into 'master'
Revert "Merge branch 'feature/clippy' into 'master'"

See merge request espressif/esp-idf!18741
2022-06-29 18:37:48 +08:00
Roland Dobai
8dddb8b596 Revert "Merge branch 'feature/clippy' into 'master'"
This reverts merge request !16998
2022-06-29 16:46:47 +08:00