Commit Graph

16628 Commits

Author SHA1 Message Date
wanlei
6864f72ab7 test: add new spi-sio multi-board test for all chip
test sio master only, and splited into master input & output ability
slave device work on full duplex mode to provide input/output source only
2022-08-17 15:52:08 +08:00
xueyunfei
b9a0a3d5c4 esp_wifi:fix some wifi bugs
1 esp32c2: mv multiphy api out of ESP_MESH_SUPPORT macro

   2 clear bss info when wifi stop

   3 add clear ap list interface
2022-08-17 15:43:40 +08:00
xueyunfei
601982ccad esp_wifi:add clear ap list interface 2022-08-17 15:32:47 +08:00
wanlei
5726f3d8cb spi_master: add check for 'post_cb' when flag 'SPI_DEVICE_NO_RETURN_RESULT' is set
There are two ways to know which transaction descriptor is finished,
by either calling `spi_device_get_trans_result`, or getting it from `post_cb`.
When `SPI_DEVICE_NO_RETURN_RESULT` is set, driver will not push finished
transaction descriptors into the queue. So you can't get it from
`spi_device_get_trans_result`. The only way to know this is via `post_cb`.

update document for function `spi_bus_add_device`
2022-08-17 15:08:06 +08:00
chenjianhua
e29170bce9 Bluedroid: Configurable option to modify max gatt service attributes count 2022-08-17 14:36:12 +08:00
morris
2c5a866ea3 mcpwm: don't use keyword operator
Closes https://github.com/espressif/esp-idf/issues/9510
2022-08-17 06:31:50 +00:00
morris
104b9c3fb1 Merge branch 'feature/introduce_lcd_color_space_enum' into 'master'
lcd: deprecate esp_lcd_color_space_t

See merge request espressif/esp-idf!19576
2022-08-17 14:19:12 +08:00
Laukik Hase
85d00a4dac
ci: Fix host-test failures 2022-08-17 10:59:32 +05:30
Laukik Hase
fb93901d5b
esp_app_format: Added test-app 2022-08-17 10:59:31 +05:30
Laukik Hase
0071ea498f
esp_app_format: Fixed build errors and resolved dependencies 2022-08-17 10:59:31 +05:30
Laukik Hase
0519f604db
app_update: Moved app metadata to new component esp_app_format 2022-08-17 10:59:25 +05:30
Jing Li
b51d4dfacd Merge branch 'bugfix/fix_clk_cali_logic_for_c2' into 'master'
esp32c2/clk_cali: fix rtc slow clk cali logic

See merge request espressif/esp-idf!19553
2022-08-17 11:11:19 +08:00
Armando
02fb570253 esp_psram: fixed 40mhz cs signal glitch issue 2022-08-17 10:38:49 +08:00
Ivan Grokhotkov
512b59f388 Merge branch 'test/newlib_blksize' into 'master'
newlib: add test for st_blksize and FILE buffer size

See merge request espressif/esp-idf!19366
2022-08-16 23:02:59 +08:00
David Cermak
83b8556f10 esp_netif: Migrate SLIP interface to user-space 2022-08-16 14:08:15 +00:00
Ivan Grokhotkov
985f44c158 Merge branch 'bugfix/partition_api_linux_test' into 'master'
spi_flash: convert Linux partition API test to Unity, bug fixes

See merge request espressif/esp-idf!19567
2022-08-16 21:28:41 +08:00
David Cermak
14c6d3a889 lwip: Reference official 2.1.3-esp branch
Actual changes against 2.1.3-esp-dev:
* Fix IPv6 zoning violations
* Melted on-demand timer's commits into one
2022-08-16 13:03:53 +00:00
Kevin (Lao Kaiyao)
38bb2debea Merge branch 'feature/touch_element_sleep' into 'master'
touch_element: add low-power support and example into touch element

Closes IDF-3027 and IDF-4353

See merge request espressif/esp-idf!13001
2022-08-16 18:57:46 +08:00
Mu Hai Dong
cd39088c9c Merge branch 'bugfix/fix_init_memory_leak_issue' into 'master'
esp_wifi: done beacon monitor timer when call pm deattach

Closes WIFI-4675, WIFI-4676, WIFI-4694, and WIFI-4695

See merge request espressif/esp-idf!19375
2022-08-16 17:43:17 +08:00
Mahavir Jain
6c2c05e8a0 Merge branch 'feature/esp_cryptoauthlib_from_manager' into 'master'
Push out esp-cryptoauthlib to component manager

See merge request espressif/esp-idf!19208
2022-08-16 17:01:53 +08:00
AndriiFilippov
5433abebfa Re-enable unit test for C2 tcp_transport 2022-08-16 08:45:20 +00:00
AndriiFilippov
0013ad5bb9 Replaced logging tags with lower case in tcp_transport component to unite all tags under common structure. 2022-08-16 08:38:57 +00:00
morris
bc372f8f55 rgb_lcd: deprecate esp_lcd_color_space_t 2022-08-16 14:35:08 +08:00
Alex Lisitsyn
c7558690ca Merge branch 'bugfix/driver_rs485_fix_test_sync_issues' into 'master'
driver: uart rs485 fix test sync issues and fail threshold

See merge request espressif/esp-idf!19556
2022-08-16 13:10:13 +08:00
Alex Lisitsyn
c78f126eed driver: uart rs485 fix test sync issues and fail threshold 2022-08-16 13:10:13 +08:00
Michael (XIAO Xufeng)
746f4b814c uart: move frequency of clock sources out of HAL 2022-08-15 18:55:43 +00:00
Ivan Grokhotkov
ab02e15601
spi_flash: use Unity fixture in the partition API test 2022-08-15 18:15:19 +02:00
Ivan Grokhotkov
91d0e016a1
spi_flash: fix build for Linux target
CONFIG_MMU_PAGE_SIZE is not defined for the Linux target, add a
fallback definition.
2022-08-15 18:15:19 +02:00
Ivan Grokhotkov
1ac3fc79b7
unity: add linux port
This allows using unity fixture in Linux host tests
2022-08-15 18:15:19 +02:00
Wang Meng Yang
4f4edef113 Merge branch 'bugfix/fix_ble_sch_arb_assert' into 'master'
Fixed BLE sch_arb assert on ESP32-C3 and ESP32-S3

Closes IDFGH-7620, IDFGH-7694, and BT-2637

See merge request espressif/esp-idf!19519
2022-08-15 21:54:07 +08:00
Sudeep Mohanty
d9445638fe Merge branch 'bugfix/incorrect_base_addr_for_rtcio_on_esp32s3' into 'master'
rtci2c: Corrected the register base addr reference for RTC I2C on esp32s3

See merge request espressif/esp-idf!19552
2022-08-15 20:41:09 +08:00
laokaiyao
62ab4456a8 touch_sleep: complete the support for touch sleep 2022-08-15 20:04:57 +08:00
Kang Zuoling
0f1eb82acd add touch element deep sleep example and auto sleep example 2022-08-15 20:03:12 +08:00
Kang Zuoling
82bf6c0935 add skip calibration and wakeup channel, fix isr in sleep mode 2022-08-15 20:03:12 +08:00
zlq
80c821a9aa 1.add ldo parameters in efuse table; 2.set ldo based on pvt-efuse; 3.ldo voltage is changed based on cpu freq 2022-08-15 18:03:55 +08:00
Michael (XIAO Xufeng)
f11de46bfc Merge branch 'bugfix/fix_c2_rtc_ldo_too_low_bug' into 'master'
ESP32C2: Fix system not stable bug when rtc voltage too low

Closes IDF-5539

See merge request espressif/esp-idf!19217
2022-08-15 17:34:36 +08:00
Sudeep Mohanty
6b010612a2 rtci2c: Corrected the register base addr reference for RTC I2C on esp32s3
This commit corrects the register base address reference for RTC I2C on
esp32s3.
2022-08-15 10:46:40 +02:00
jingli
c70094f64a esp32c2/clk_cali: fix rtc slow clk cali logic 2022-08-15 16:31:54 +08:00
morris
1d4c08cef4 mcpwm: added enable/disable functions
Closes https://github.com/espressif/esp-idf/pull/9523
2022-08-15 14:46:56 +08:00
morris
970d4cab09 driver: add doc on how to unregister event callbacks
Closes https://github.com/espressif/esp-idf/pull/9523
2022-08-15 14:46:56 +08:00
morris
0d881fc9e0 driver: specify the interrupt priority
Closes https://github.com/espressif/esp-idf/issues/9520
2022-08-15 14:46:56 +08:00
meawoppl
677a0c438d spi_master: added a device flag "SPI_DEVICE_NO_RETURN_RESULT"
Add this flag to select if returning done transaction descriptors from ISR.
You should get the finished transaction descriptor by the callback "post_cb"
if you using this flag, if not, same as the past.

Close https://github.com/espressif/esp-idf/pull/9141
2022-08-15 12:10:50 +08:00
Darian
a28fd95051 Merge branch 'feature/freertos_10.4.3_revert_critical_section_macro' into 'master'
freertos: (Sync v10.4.3) Revert common critical section macro (2)

See merge request espressif/esp-idf!19527
2022-08-12 23:41:44 +08:00
Roland Dobai
571a074dd9 Merge branch 'fix/flake8_v5_warnings' into 'master'
Tools: Fix flake8 version 5 warnings

See merge request espressif/esp-idf!19488
2022-08-12 23:27:14 +08:00
Roland Dobai
8c10a14782 Merge branch 'refactor/remove_dependency_on_future' into 'master'
Remove the dependency on the future package

See merge request espressif/esp-idf!18925
2022-08-12 21:38:35 +08:00
Jiang Jiang Jian
aa065707f3 Merge branch 'bugfix/bt_invalid_workqueue_num' into 'master'
Bluetooth: fixed the invalid workqueue number for BTU thread in Bluedroid

See merge request espressif/esp-idf!19508
2022-08-12 18:55:54 +08:00
Darian
c0f5e123c5 Merge branch 'contrib/github_pr_9497' into 'master'
Move xSemaphoreGive out of configASSERT (GitHub PR)

Closes IDFGH-7988

See merge request espressif/esp-idf!19522
2022-08-12 17:43:46 +08:00
Darian Leung
e22e7dd670 freertos: Revert critical section macro
This commit reverts the previous "taskENTER_CRTIICAL();" so that the argument
is now provided for better code readability. The names of the spinlocks have
also been updated.
2022-08-12 16:17:45 +08:00
Roland Dobai
bab3830797 Tools: Fix flake8 version 5 warnings 2022-08-12 08:13:13 +00:00
Roland Dobai
656936d32a Merge branch 's3_sysview_irq_names' into 'master'
Fix ESP32-S3 interrupt names used by SystemView

See merge request espressif/esp-idf!19373
2022-08-12 16:01:19 +08:00
Mahavir Jain
203830e12b
esp-cryptoautlib: remove submodule and use from IDF component manager 2022-08-12 11:24:02 +05:30
morris
6f2ac1ce2a rmt: add iram safe test
Closes https://github.com/espressif/esp-idf/issues/9487
2022-08-12 11:30:14 +08:00
morris
f24983a942 unity_utils: added helper function to disable cache and run user function 2022-08-12 11:29:52 +08:00
tgotic
60bdc4a023 update code to use osi_free() 2022-08-11 18:14:35 +02:00
Darian
2761ad4865 Merge branch 'feature/freertos_10.4.3_sync_yielding' into 'master'
freertos: Add new macro to check for yielding

Closes IDF-5735

See merge request espressif/esp-idf!19316
2022-08-11 22:57:05 +08:00
zwj
788f7265c0 Update BLE lib for ESP32-C3 and ESP32-S3
- update ble tx power level mapping
- Fixed ble sch_arb assert
2022-08-11 21:29:26 +08:00
zwj
e414dd7e07 fix extend adv set remove failed 2022-08-11 20:50:15 +08:00
Martin Vychodil
d7e3072040 Merge branch 'fix/sdspi_no_cs' into 'master'
sdspi: Allow CS line to be set to GPIO_NUM_NC (-1)

Closes IDFGH-6175

See merge request espressif/esp-idf!19420
2022-08-11 20:17:26 +08:00
Erhan Kurubas
66e3a6f6a3 esp32s3: fix interrupt names used by SystemView 2022-08-11 11:23:03 +02:00
Erhan Kurubas
f8d439dee3 replace CAN with TWAI in the esp_isr_names table 2022-08-11 11:23:03 +02:00
Island
fd8101498b Merge branch 'bugfix/fix_bluetooth_cap_define_and_doc' into 'master'
Bugfix/fix bluetooth cap define and doc

Closes BC-1298 and BC-1297

See merge request espressif/esp-idf!19149
2022-08-11 16:51:08 +08:00
Darian
236d910be8 Merge branch 'bugfix/light_sleep_deadlock' into 'master'
esp_hw_support: Fix light sleep deadlock

Closes IDFCI-1329 and IDFCI-1330

See merge request espressif/esp-idf!19278
2022-08-11 16:24:44 +08:00
wangmengyang
9a6101bfed components/bt: fixed the invalid workqueue number for BTU thread in Bluedroid
There should be only one workqueue for BTU task. The queue length for the second workqueue of BTU can be uninitialized and caused memory overflow and corruption.

Closes https://github.com/espressif/esp-idf/issues/9507
2022-08-11 16:09:44 +08:00
Darian Leung
287ab7566b freertos: Use check yielding macros
This commit updates various FreeRTOS functions to call the newly added
prvCheckForYield() and prvCheckForYieldUsingPriority() when checking for
yielding. This allows the source code to match upstream more closely.
2022-08-11 16:02:48 +08:00
Darian Leung
0fd305da2d freertos: Add new macro to check for yielding
When a FreeRTOS function unblocks a task, that function will check whether
the unblocked task requires a yield to be called. This is currently done by
having each function individually check if the unblocked task has a higher
priority than the both cores, and yielding the appropriate core.

This commit adds the macros list below to abstract away the yielding checking
procedure. This will allow the code to match upstream more closely.

- prvCheckForYield()
- prvCheckForYieldUsingPriority()
2022-08-11 16:02:48 +08:00
chaijie@espressif.com
b250589f2f set fosc div to 1 to make chip run stablly for C2 2022-08-11 14:28:11 +08:00
Sachin Parekh
3a050cde26 Merge branch 'fix/s3_world_controller_headers' into 'master'
esp32s3: Update world controller headers

Closes IDF-5648

See merge request espressif/esp-idf!19219
2022-08-11 13:38:53 +08:00
morris
6aa08af572 Merge branch 'bugfix/remove_format_warnings_in_driver' into 'master'
driver: remove -Wno-format flag

Closes IDF-5764

See merge request espressif/esp-idf!19401
2022-08-11 12:19:50 +08:00
wangjialiang
e814f57b0f ble_mesh: stack: Fix kr from non-primary subnet shouldn't ignore
For case MESH/NODE/KR/BV-02-C
2022-08-10 14:12:37 +00:00
wangjialiang
3632250884 ble_mesh: stack: Add a check if the appkey is bound to the model.
For case MESH/NODE/CFG/MP/BI-03-C
2022-08-10 14:12:37 +00:00
wangjialiang
59c1e9a25d ble_mesh: stack: the count_log field should be set to 0 when HBS is sent.
For MESH/NODE/CFG/HBS/BV-02-C
2022-08-10 14:12:37 +00:00
wangjialiang
0cb883b407 ble_mesh: stack: The Heartbeat Publication Period Log value can set to 0x11, range: [0, 0x11] 2022-08-10 14:12:37 +00:00
wangjialiang
ee7d448e3c ble_mesh: stack: The value of expect_ack_for will be rewrited after send_pub_key().
For case MESH/PVNR/PROV/BV-04-C
2022-08-10 14:12:37 +00:00
wangjialiang
5830ac8b12 ble_mesh: stack: Fix ignore connectable PB-ADV PDU containing a Link Open message.
For case MESH/NODE/PBADV/BI-04-C
2022-08-10 14:12:37 +00:00
wangjialiang
fc9edce9bc ble_mesh: stack: Fix PB-GATT not check invalid link flag
For case MESH/NODE/PROV/BI-03-C
2022-08-10 14:12:37 +00:00
wangjialiang
bd418e7a76 ble_mesh: stack: Fix invalid provisioning pdu type check
For case MESH/NODE/PROV/BI-15-C
2022-08-10 14:12:37 +00:00
Darian Leung
a73dd07d12 esp_hw_support: Fix esp_light_sleep_start() deadlock
esp_light_sleep_start() will stall the other CPU via esp_ipc_isr_stall_other_cpu(). After stalling the other CPU,
will call esp_clk_... API which themselves take locks. If the other stalled CPU is holding those locks, this will
result in a deadlock.

This commit adds a workaround calling esp_clk_private_lock() to take the lock before stalling the other CPU.
2022-08-10 18:52:32 +08:00
Darian Leung
2a6c6c18f7 esp_hw_support: esp_clk should use spinlock instead of mutex
esp_clk used to be protected using _lock_t (i.e., a FreeRTOS Mutex). However, esp_clk API is current called from
from critical sections, thus mutex should not be used (as they can be blocking).

This commit updates esp_clk to use spinlocks for critical sections instead.
2022-08-10 18:52:32 +08:00
Darian Leung
5804d2b6a7 freertos: Fix flakey event group unit tests
The event group unit tests would previously use a single call bit (the
"BIT_CALL" macro) to unblock all the test tasks. However, if one or more tasks
were delayed in calling xEventGroupWaitBits(), the other tasks would clear the
test bits, leading to the test deadlocking.

This commit updates the bits used so that each task gets their own CALL and
RESPONSE bits.
2022-08-10 16:54:25 +08:00
Sachin Parekh
41c5359703 esp32s3: Update world controller headers 2022-08-10 07:22:02 +00:00
Wang Yuan Ze
debf2c0b70 Merge branch 'test/move_touch_related_unit_tests_to_test_apps' into 'master'
test: move touch related unit tests to test apps

Closes IDFCI-1283, IDFCI-1156, and IDF-5766

See merge request espressif/esp-idf!19348
2022-08-09 23:15:18 +08:00
simon.chupin
35dda59209 tools: remove the dependency on the future package 2022-08-09 16:46:58 +02:00
muhaidong
36feb95a9e esp_wifi: done beacon monitor timer and eloop timer when deinit 2022-08-09 17:22:39 +08:00
Liu Ning
f444aa4a7c Merge branch 'bugfix/esp32s2_fail_to_scan_after_recv_disassoc' into 'master'
esp_wifi: fix fail to scan after recv disassoc/deauth for esp32s2

Closes WIFI-4539

See merge request espressif/esp-idf!19407
2022-08-09 16:02:26 +08:00
Omar Chebib
d622bcfd46 Merge branch 'contrib/github_pr_9517' into 'master'
fix malloc(0) and heap_caps_alloc_failed() (GitHub PR)

Closes IDFGH-8007

See merge request espressif/esp-idf!19421
2022-08-09 15:49:27 +08:00
Island
ee10f25b89 Merge branch 'bugfix/friend_and_lpn_issues' into 'master'
ble_mesh: stack: Fix friend and lpn issues

See merge request espressif/esp-idf!19378
2022-08-09 14:39:58 +08:00
morris
ad59ae38d8 Merge branch 'bugfix/duplicate_i2s_test_case_name' into 'master'
i2s: fixed duplicated test case name

See merge request espressif/esp-idf!19442
2022-08-09 12:01:11 +08:00
Lin Rui Hao
68bd2badf4 Merge branch 'contrib/github_pr_9498' into 'master'
bluedroid: fix member typo

Closes IDFGH-7987

See merge request espressif/esp-idf!19436
2022-08-09 11:13:33 +08:00
morris
92a44afeba Merge branch 'bugfix/cleanup_rom_spiflash' into 'master'
esp-rom: remove undefined spi_flash functions from header

Closes IDFGH-109

See merge request espressif/esp-idf!19333
2022-08-09 10:39:14 +08:00
Omar Chebib
c6ddf7288c heap: add a unit test for malloc(0) and slightly optimize heap_caps_malloc_prefer 2022-08-09 10:30:36 +08:00
Omar Chebib
790aa40c38 Merge branch 'contrib/github_pr_7144' into 'master'
Update i2c.c to consider two I2C buses for clear bus counter (GitHub PR)

Closes IDFGH-5398

See merge request espressif/esp-idf!19093
2022-08-09 10:26:25 +08:00
tgotic
f78298b04a local copy of btc_msg_t
No need to use local copy of btc_msg_t in btc_transfer_context, create it on heap and pass to osi_thread_post().
2022-08-08 16:18:16 +02:00
Mahavir Jain
b1e1411f7d Merge branch 'bugfix/add_signature_in_image_len' into 'master'
bootloader_support: consider signature sector in image length validation

Closes IDF-5617

See merge request espressif/esp-idf!19272
2022-08-08 20:52:59 +08:00
Geng Yuchao
0a1d8c1e09 Fix soc caps define for all chips 2022-08-08 20:50:28 +08:00
laokaiyao
3c4bc80712 i2s: fixed duplicated test case name 2022-08-08 20:35:47 +08:00
wangjialiang
8f640a3e82 ble_mesh: stack: Fix add continuously secure update into friend queue.
For MESH/NODE/FRND/FN/BV-20-C
2022-08-08 12:30:44 +00:00
wangjialiang
e797cb54dc ble_mesh: stack: Fix friend relay lpn message when relay feature is disable
For MESH/NODE/FRND/FN/BV-23-C
2022-08-08 12:30:44 +00:00
Song Ruo Jing
c7c6910bed Merge branch 'feature/support_esp32c2_test_pm' into 'master'
pm: update pm test cases to support esp32c2

Closes IDF-3822

See merge request espressif/esp-idf!18049
2022-08-08 20:24:17 +08:00
Roland Dobai
819880af64 Merge branch 'bugfix/esp32h2beta2_erase_flash' into 'master'
fix(esp32h2beta2): erase flash

Closes IDF-4288

See merge request espressif/esp-idf!19389
2022-08-08 20:22:14 +08:00
linruihao
fe04cdb88c Fixd union member access typo
Closes https://github.com/espressif/esp-idf/pull/9498
2022-08-08 19:40:25 +08:00