Commit Graph

14478 Commits

Author SHA1 Message Date
Ivan Grokhotkov
6782971332 sdmmc: accept CMD_DONE being is reported together with RTO
SDMMC databook specifies that when an error interrupt is generated
(such as RTO, DCRC, RCRC), CMD_DONE interrupt is also generated.
The code used to break out of the event handling loop to wait for
another interrupt event to happen, reporting CMD_DONE.
However if interrupt processing was delayed, it is possible that
a single event contains both RTO and CMD_DONE. Previously, CMD_DONE
would not be handled, and the state machine would be stuck in
SDMMC_SENDING_CMD state, until a timeout. This didn't change the
outcome (err=0x107), but delayed the handling of response timeout
event.

Fix by not breaking out of the event handler, optionally processing
the CMD_DONE interrupt if it has been reported in the same message.
2022-02-20 12:39:36 +00:00
Jakob Hasse
41e1eea9a9 Merge branch 'contrib/github_pr_8388' into 'master'
esp_event: constify event_data pointer (GitHub PR)

Closes IDFGH-6760

See merge request espressif/esp-idf!17195
2022-02-17 14:44:32 +00:00
Mahavir Jain
69f51a989c Merge branch 'feature/pre_encrypted_binary' into 'master'
feature: Pre Encrypted Binary during OTA updates

Closes IDF-3256, IDF-3254, and IDFGH-4334

See merge request espressif/esp-idf!16434
2022-02-17 13:36:54 +00:00
Jiang Jiang Jian
b66cc63c41 Merge branch 'bugfix/fix_ble_adv_underrun_error' into 'master'
components/bt: Fix ble adv_underrun issue

See merge request espressif/esp-idf!16729
2022-02-17 06:07:04 +00:00
Mahavir Jain
fbc9c729b2 esp_https_ota: rename config option for more clarity 2022-02-17 10:54:06 +05:30
Mahavir Jain
7fd2d5ea03 esp_https_ota: add support for decryption callback
- Decryption callback is additional feature, default disabled
- This callback can help to plug in external components managing
additional encapsulation layers on firmware image format
2022-02-17 10:54:04 +05:30
Mahavir Jain
3eb8f3b54e esp_https_ota: add some return values to API documentation 2022-02-17 10:49:15 +05:30
Mahavir Jain
4ae6cce2a5 esp_https_ota: add check for image descriptor magic in relevant API 2022-02-17 10:49:15 +05:30
Mahavir Jain
0b3a8881e0 esp_https_ota: Increase default ota buffer size and few other cleanups
- Increased OTA buffer size to 1K, this can easily cover image headers
- Reduced OTA redirection buffer size, this buffer is used to only consume
redirection headers
- Added static assert to check on OTA buffer size
2022-02-17 10:49:15 +05:30
Marius Vikhammer
b6540b7a4a Merge branch 'feature/c2_clean_up_not_supported_periphs' into 'master'
docs: remove peripherals docs that are not supported on C2

Closes IDF-4201, IDF-4673, and IDF-4658

See merge request espressif/esp-idf!17168
2022-02-17 03:12:04 +00:00
Amaryllis Kulla
1858901241 esp_event: constify event_data pointer
Also update copyright headers.
2022-02-16 16:16:45 +01:00
Jakob Hasse
d5e1362e14 bugfix (freertos): added stdint.h to linux portmacro header 2022-02-16 16:51:22 +08:00
xiewenxiang
dd9e2f4ac6 components/bt: Fix ble adv_underrun issue
components/bt: Fix LLCP collision for channel map update
2022-02-16 16:35:00 +08:00
morris
0d03c17ab2 Merge branch 'bugfix/eth_test_emac_init' into 'master'
ci/esp_eth: Fix incorrect esp32 emac init

See merge request espressif/esp-idf!17178
2022-02-16 08:15:47 +00:00
Mahavir Jain
af9a194672 Merge branch 'feature/websocket_server_support_close_handle' into 'master'
esp_http_server: Websocket CLOSE frame can support callback function

Closes IDFGH-5785

See merge request espressif/esp-idf!17086
2022-02-16 07:08:57 +00:00
Jiang Jiang Jian
290177c1a1 Merge branch 'bugfix/assoc_comeback_fail_issue' into 'master'
Fix assoc comeback causing invalid state & FTM cleanup

Closes WIFI-4299

See merge request espressif/esp-idf!16848
2022-02-16 04:36:24 +00:00
Marius Vikhammer
6d50a8dd7a docs: remove peripherals that are not supported from C2 docs 2022-02-16 10:22:46 +08:00
Marius Vikhammer
63edf76c36 soc: remove sigma delta and DS caps from soc_caps.h
These two peripherals do not exist on C2
2022-02-16 10:21:09 +08:00
David Cermak
25dbf35867 ci/esp_eth: Fix incorrect esp32 emac init
Regression from 8da2e4088c
2022-02-15 18:38:40 +01:00
Mahavir Jain
71e29053cf Merge branch 'refactor/esp_https_server_api_cleanup' into 'master'
esp_https_server: API cleanup

Closes IDFGH-6540

See merge request espressif/esp-idf!17136
2022-02-15 16:11:09 +00:00
Ondrej Kosta
7512bdecfe Merge branch 'feature/emac_start_stop_test' into 'master'
test_emac: extended Ethernet start/stop stress test

Closes IDF-4540

See merge request espressif/esp-idf!16755
2022-02-15 13:23:01 +00:00
David Čermák
412fb564ca Merge branch 'bugfix/emac_config_dma_burst_len' into 'master'
esp_eth: Make EMAC DMA burst size configurable (GitHub PR)

Closes IDFGH-6199 and IDFGH-5658

See merge request espressif/esp-idf!16412
2022-02-15 10:36:51 +00:00
David Cermak
8da2e4088c esp_eth: Update esp32's EMAC API to decouple driver and vendor config 2022-02-14 16:17:29 +00:00
David Cermak
1dc60730ee esp_eth: ESP32 EMAC to use common DMA busrt size for both Tx and Rx 2022-02-14 16:17:29 +00:00
David Cermak
2553fb5845 esp_eth: Make EMAC DMA burst size configurable
Merges https://github.com/espressif/esp-idf/pull/7874
Closes  https://github.com/espressif/esp-idf/issues/7380
2022-02-14 16:17:29 +00:00
Simon Schubert
a6ca3d39a8 emac: reduce rx burst length to avoid SPI DMA collision bug
See <https://github.com/espressif/esp-idf/issues/7380>.
2022-02-14 16:17:29 +00:00
AndriiFilippov
d69c11e017 ci/esp_eth: Replaced ethernet download task with ethernet download function
Rename eth_download_task to eth_start_download. Remove eth_event_group's
download bit

Delete unused variables
2022-02-14 16:02:45 +01:00
Nachiket Kukade
af51170b99 esp_wifi: Update wifi lib
1. Fix assoc comeback causing invalid state
2. Better cleanup in some FTM failure cases
2022-02-14 19:42:50 +05:30
Harshit Malpani
94056fd4a5 esp_https_server: API cleanup 2022-02-14 16:25:54 +05:30
Ondrej Kosta
57225f99c7 Created EMAC start/stop stress test under heavy traffic 2022-02-14 08:21:43 +01:00
Ondrej Kosta
e97fd4b076 esp_eth: EMAC start/stop optimization 2022-02-14 08:21:43 +01:00
Marius Vikhammer
3da0b2249b Merge branch 'bugfix/ulp_depr_headers' into 'master'
ulp: change deprecated headers to use relative includes to avoid recursivly...

See merge request espressif/esp-idf!17112
2022-02-14 03:31:04 +00:00
morris
84b750cbe8 Merge branch 'refactor/lcd_soc_ll_update_according_trm' into 'master'
lcd soc ll update according trm

See merge request espressif/esp-idf!16900
2022-02-12 08:13:34 +00:00
Kapil Gupta
20847eeb96 Merge branch 'bugfix/eap_client_crash' into 'master'
wpa_supplicant: Fix memory corruption

Closes WIFI-4299

See merge request espressif/esp-idf!16841
2022-02-11 09:54:27 +00:00
Omar Chebib
5bd204eac9 Merge branch 'bugfix/lwip_timeout_not_compliant' into 'master'
Make `sys_arch_sem_wait` POSIX compliant (required by lwip_select)

See merge request espressif/esp-idf!16911
2022-02-11 08:48:40 +00:00
Jiang Jiang Jian
019af183ce Merge branch 'bugfix/fix_s2_phy_bbpll_cal_fail' into 'master'
esp_phy: fix s2 sar2 init no cal and bbpll cal fail

See merge request espressif/esp-idf!16948
2022-02-11 08:28:09 +00:00
Ivan Grokhotkov
c372248624 Merge branch 'contrib/github_pr_7710' into 'master'
sdspi_host: fix clock being sent out before the bus is acquired (GitHub PR)

Closes IDFGH-6024

See merge request espressif/esp-idf!16851
2022-02-11 08:27:06 +00:00
Marius Vikhammer
8a48b55197 ulp: change deprecated headers to use relative includes to avoid recursivly including the same header 2022-02-11 14:56:11 +08:00
Marius Vikhammer
5ef585b1b9 Merge branch 'feature/remove_frc2_timer' into 'master'
esp_timer: remove legacy ESP32 FRC timer implementation

Closes IDF-3805

See merge request espressif/esp-idf!16406
2022-02-11 06:08:15 +00:00
Darian Leung
2cebfcf885 freertos: Refactor configuration files
This commit refactors the FreeRTOS configuration headers as follows:

- Layout is now similar to FreeRTOSConfig.h found in other upstream demos
- Separate out Vanilla FreeRTOS configurations and ESP-IDF additions
- Move/remove some irrelevant/unused macros and configurations
2022-02-10 21:23:46 +08:00
Omar Chebib
95cc6cfac4 LWIP: Make system timeout POSIX compliant (required by lwip_select)
`lwip_select` uses `sys_arch_sem_wait` function making the assumption that it
is POSIX compliant. This commit makes that function wait for at least
timeout (milliseconds), as required by POSIX specification.

* Relates to https://github.com/espressif/esp-idf/issues/7514
2022-02-10 10:36:09 +00:00
Darian Leung
7d78cec149 ledc: Remove usage of legacy FreeRTOS type 2022-02-10 15:19:36 +08:00
Marius Vikhammer
edb76f14d6 esp_timer: remove legacy ESP32 FRC timer implementation. 2022-02-10 15:17:49 +08:00
Omar Chebib
0cfa7ca20f Merge branch 'bugfix/fix_i2c_crash' into 'master'
I2C: Fix I2C Master operation with repeated start condition

Closes IDFGH-6719 and IDFGH-6724

See merge request espressif/esp-idf!17035
2022-02-10 07:05:59 +00:00
Anton Maklakov
3a04b712fa Merge branch 'bugfix/fix_abs_using' into 'master'
build: fix abs() use

See merge request espressif/esp-idf!16952
2022-02-10 05:18:32 +00:00
Darian
61639fe1ec Merge branch 'refactor/freertos_remove_legacy_types' into 'master'
FreeRTOS: Remove usage of legacy data types

Closes IDF-4566

See merge request espressif/esp-idf!16680
2022-02-10 04:57:00 +00:00
Jiang Jiang Jian
cca2234619 Merge branch 'feature/pmf_support_for_softAP' into 'master'
esp_wifi: Add pmf support for softAP.

Closes WIFI-1353

See merge request espressif/esp-idf!14906
2022-02-10 04:17:00 +00:00
ChenJianxing
9909c4a3dc esp_phy: fix esp32s2 sar2 init no cal and bbpll cal fail 2022-02-10 11:56:37 +08:00
Song Ruo Jing
40d1102ca5 Merge branch 'bugfix/cpu_reset_perip_clk_disable' into 'master'
esp_system: change range comparsion for reset reason to specifc cpu reset reason comparison

See merge request espressif/esp-idf!15492
2022-02-10 03:44:15 +00:00
Darian Leung
57fd78f5ba freertos: Remove legacy data types
This commit removes the usage of all legacy FreeRTOS data types that
are exposed via configENABLE_BACKWARD_COMPATIBILITY. Legacy types can
still be used by enabling CONFIG_FREERTOS_ENABLE_BACKWARD_COMPATIBILITY.
2022-02-09 23:05:45 +08:00