Commit Graph

24718 Commits

Author SHA1 Message Date
Ivan Grokhotkov
bf10146a15
esp_system, vfs: fix incomplete blocking reads in vfs_cdcacm
Blocking read from cdcacm VFS could return less bytes than requested.
This didn’t match the behaviour of other VFS drivers, and higher level
code could misbehave.
2022-07-28 17:28:08 +02:00
Ivan Grokhotkov
3254f8deae
esp_system: usb_console: fix restart when Wi-Fi is working
Previously, reset over USB CDC was done by calling esp_restart from
an interrupt handler. This works only until some restart hook function
is registered using esp_register_shutdown_handler, and the hook
function tries to do something that isn’t allowed in an interrupt
handler. One such case is with Wi-Fi. When Wi-Fi driver is installed,
it registers esp_wifi_stop as a shutdown handler function. However
esp_wifi_stop cannot be called from an ISR, and hence we shouldn’t
call esp_restart from an ISR either.

This commit modifies USB CDC driver to call esp_restart by posting it
to esp_timer task.

Closes https://github.com/espressif/esp-idf/issues/7404
2022-07-28 17:15:03 +02:00
David Čermák
ac0487e8b7 Merge branch 'feature/support_mqtt5_protocol' into 'master'
Make MQTT client to comply with mqtt v5.0 spec

See merge request espressif/esp-idf!17345
2022-07-28 21:24:56 +08:00
Sergei Silnov
4f93db4f5a tools: Fix copyright check in pre-commit for windows 2022-07-28 15:16:53 +02:00
Jon Shallow
98d346a81e coap: Update examples to use latest features of libcoap component
Support libcoap build with Client Only or Server Only code.
2022-07-28 13:11:52 +00:00
Kapil Gupta
465996fba5 wpa_supplicant: fix invalid pointer free 2022-07-28 12:47:31 +00:00
Erhan Kurubas
b0881a1e6c examples/gcov: add missing supported targets to readme 2022-07-28 13:59:29 +02:00
Erhan Kurubas
3a9f711f77 examples/gcov: set esp32c2 default blink gpio 2022-07-28 13:59:29 +02:00
Erhan Kurubas
22d771bf51 esp32c2: fix gcov example build 2022-07-28 13:59:29 +02:00
Martin Gano
50626e776e Merge branch 'bugfix/speedup-fatfsgen-cluster-allocation' into 'master'
fatfsgen.py: Speedup FAT cluster allocation in fatfs partition generator

Closes IDF-5243

See merge request espressif/esp-idf!19216
2022-07-28 18:02:11 +08:00
Darian Leung
05ff1039dc esp_hw_support: Fix misuse of spinlocks as critical sections
Spinlocks themselves do not constitute critical sections as after a spinlock is acquired, interrupts
can remain enabled. However, there are some places where spinlocks are used direclty instead of using
the portMUX_TYPE and portENTER_CRITICAL_...() APIs. This commit fixes those calls.
2022-07-28 17:25:00 +08:00
Guillaume Souchere
421a408b42 freertos: Update the docuementation of the ulBitsToClearOnEntry parameter in xTaskGenericNotifyWait() function.
Closes https://github.com/espressif/esp-idf/issues/7207

The description of how the xTaskGenericNotifyWait parameter is handled in the
xTaskGenericNotifyWait() function was inaccurate.

In this commit, the description was updated to match the implementation of xTaskGenericNotifyWait().
2022-07-28 10:30:41 +02:00
David Čermák
e7e350d439 Merge branch 'bugfix/lwip_store_esp_netif_ptr' into 'master'
esp_netif/lw-ip: Use netif-client-data to store esp_netif ptr

Closes IDFGH-7813 and IDF-5542

See merge request espressif/esp-idf!19075
2022-07-28 14:54:08 +08:00
Jing Li
2c41aae1e7 Merge branch 'bugfix/temp_fix_clk8m_and_cpu_cannot_pd_at_the_same_time' into 'master'
esp_hw_support/sleep: fix cannot pd cpu and rc fast at the same time during light sleep

Closes WIFI-4492 and IDF-5473

See merge request espressif/esp-idf!19196
2022-07-28 14:45:28 +08:00
Rahul Tank
7ed3157351 Merge branch 'bugfix/add_max_procs_config' into 'master'
Nimble: Configurable option to modify max gatt procedures allowed for GATT client

See merge request espressif/esp-idf!19197
2022-07-28 14:38:41 +08:00
wangyuanze
8781a50abe spi_flash: fix hpm dummy error when using 80m flash and psram 2022-07-28 14:32:30 +08:00
yuanjm
7dcc29d0be Add mqtt5 build test rules 2022-07-28 06:24:43 +00:00
yuanjm
196831efa8 example: Add mqtt5 example 2022-07-28 06:24:43 +00:00
yuanjm
66e0171c42 test: Add mqtt5 unit-test 2022-07-28 06:24:43 +00:00
yuanjm
5a7b17ff7d mqtt: Add mqtt5 Kconfig 2022-07-28 06:24:43 +00:00
xiongweichao
7eedd710c2 fix legacy pair controller does not send the link key to the host
Closes https://github.com/espressif/esp-idf/issues/5850
2022-07-28 14:21:48 +08:00
Kevin (Lao Kaiyao)
feeb023447 Merge branch 'feature/add_xtal_40mhz_tag_for_c2_test' into 'master'
ci: add xtal_40mhz tag for c2 tests

See merge request espressif/esp-idf!19109
2022-07-28 13:55:29 +08:00
Jiang Jiang Jian
49348299f0 Merge branch 'bugfix/qatest_spp_crash' into 'master'
bugfix/qatest spp crash

Closes BT-1875, BT-2410, BT-2015, and BT-2536

See merge request espressif/esp-idf!19232
2022-07-28 13:44:56 +08:00
Isha Pardikar
3f161b9c98 Merge branch 'bugfix/nimble_l2cap_coc_cmake' into 'master'
Fixed cmake file for nimble L2CAP COC example

See merge request espressif/esp-idf!19265
2022-07-28 13:25:55 +08:00
Mahavir Jain
c0e096d5b2 Merge branch 'contrib/github_pr_9446' into 'master'
Add missing comma (GitHub PR)

Closes IDFGH-7928

See merge request espressif/esp-idf!19271
2022-07-28 12:36:30 +08:00
morris
ef02fb63dd Merge branch 'bugfix/fix_wrong_mmu_end_addr_check' into 'master'
mmu: fix wrong mmu end check in mmu_ll.h

See merge request espressif/esp-idf!19257
2022-07-28 12:00:35 +08:00
Armando
4f80c0f27e esp_adc: remove esp_adc from g1 component dependencies 2022-07-28 03:49:48 +00:00
Armando
5e6a16380a esp_adc: move adc common hw related code into esp_hw_support 2022-07-28 03:49:48 +00:00
jingli
7211b0a89a esp_hw_support/sleep: fix cannot pd cpu and rc fast at the same time during light sleep
Since cpu retention dma use rc fast as clk source, so rc_fast_digi
will be enabled when we config to pd cpu. And cpu retention does not
need rc fast keep on during light sleep. So, if we use rc_fast_digi
to determine whether rc fast can be powered down, then cpu and and
rc fast cannot pd at the same time.
2022-07-28 11:10:58 +08:00
Kevin (Lao Kaiyao)
9a7a1fe61f Merge branch 'contrib/github_pr_9430' into 'master'
Fix offset for cosine wave function generator (GitHub PR)

Closes IDFGH-7911

See merge request espressif/esp-idf!19254
2022-07-28 10:56:43 +08:00
laokaiyao
ba235c5615 ci: add xtal_40mhz tag for c2 tests 2022-07-28 02:02:18 +00:00
Marius Vikhammer
45ad46eb27 Merge branch 'docs/c2_api_ref_sys' into 'master'
docs: update api-ref system docs for C2

Closes IDF-4214 and IDF-4224

See merge request espressif/esp-idf!19218
2022-07-28 09:33:12 +08:00
Martin Gaňo
d56e692f2f fatfsgen.py: Speedup FAT cluster allocation in fatfsgen.py
Closes IDF-5243
2022-07-28 01:37:39 +02:00
Roland Dobai
9b87390daf Merge branch 'bugfix/fix_the_monitor_consol_problem' into 'master'
tools: Fix the monitor console problem

Closes IDF-5514 and IDFGH-7913

See merge request espressif/esp-idf!19129
2022-07-28 01:05:48 +08:00
Tomas Rezucha
5bd6696557 Merge branch 'feature/usb_device/hid' into 'master'
usb: Add HID device example

Closes IDFGH-7637, IDFGH-5054, IDF-581, and IDFGH-6013

See merge request espressif/esp-idf!19177
2022-07-27 21:18:50 +08:00
David Cermak
64f4f0ac1e esp_netif/lwip: Use netif-client-data to store esp_netif ptr
lwip/netif struct has two places to store user's data
* netif->state (1 void*) but that might be occupied in special cases
* netif->client_dtat (n void*s) but that must be enabled in opts.h
This commit stores esp_netif_t* primarily in state, but if any special
netif is enabled in menuconfig (bridgeif, pppos), it uses netif->client_data.
This commit also fixes incorrect esp_netif that is attached to
IP_EVENT_GOT_IP6 event posted by pppos interfaces in:
c585618b97/components/esp_netif/lwip/esp_netif_lwip_ppp.c (L114)

Closes https://github.com/espressif/esp-idf/issues/9345
2022-07-27 11:55:18 +00:00
morris
96c29841bb Merge branch 'feature/mcpwm_new_driver' into 'master'
 MCPWM Driver-NG

Closes IDF-2471, IDF-2895, IDF-20, and IDF-3945

See merge request espressif/esp-idf!11480
2022-07-27 19:25:06 +08:00
Armando
42dfb5cadd esp_psram: improve mapping log when physical range is larger
After this commit, when physical address is larger than vaddr range,
driver will still map as much as it can, but also give a verbose level
log to show the actual mapped size
2022-07-27 10:22:09 +00:00
Armando
f325ad2211 mmu: fix wrong mmu end check
In mmu code, we follow the rule that the `end` address shouldn't be
touched. This commit fix wrong end address check in mmu_ll.h
2022-07-27 10:22:09 +00:00
jincheng
44607e10ea add protect for bt_util_buf_env buffers when access by task and interrupt
ignore the assert_err in rm_bt_clkoff1_setf
2022-07-27 17:56:08 +08:00
FanhuaCloud
a1c04ad6fd
Add missing comma
Add missing comma when CONFIG_ESP32S3_DATA_CACHE_16KB is enabled
2022-07-27 17:12:17 +08:00
Rahul Tank
2be66a6151 Nimble: Configurable option to modify max gatt procedures allowed for GATT
client
2022-07-27 08:59:37 +00:00
simon.chupin
5468d79382 tools: fix idf.py monitor consol problem
Closes https://github.com/espressif/esp-idf/issues/9432
2022-07-27 08:35:30 +00:00
Armando (Dou Yiwen)
1ed5e5130e Merge branch 'bugfix/increase_overhead_when_test_adc_continuous_iram' into 'master'
esp_adc: increase test consumption threshold

Closes IDFCI-1397

See merge request espressif/esp-idf!19206
2022-07-27 16:16:23 +08:00
Marius Vikhammer
9d599c207f docs: update api-ref system docs for C2 2022-07-27 16:12:26 +08:00
Ivan Grokhotkov
0330e952d1 Merge branch 'feature/add-wl-support-fatfsparse' into 'master'
fatfsparse.py: Add support for WL

Closes IDF-4994 and IDF-5522

See merge request espressif/esp-idf!18760
2022-07-27 16:01:02 +08:00
Mahavir Jain
ab724cf7dd Merge branch 'ci/fix_dash_shell_with_comment' into 'master'
ci: fix regex in if statement for dash compatibility

See merge request espressif/esp-idf!19258
2022-07-27 15:47:45 +08:00
Isha Pardikar
97b1211b71 Merge branch 'bugfix/nimble_l2cap_coc_cmake' into 'master'
NimBLE : Fixed nimble L2CAP COC example CMakeLists.txt
2022-07-27 13:03:14 +05:30
morris
e4868548c7 doc: update MCPWM api reference with new driver API 2022-07-27 15:22:24 +08:00
morris
169a43b8eb example: update MCPWM sync example with new driver API 2022-07-27 15:22:24 +08:00