Commit Graph

29602 Commits

Author SHA1 Message Date
Darian Leung
5fde889a3d xtensa: Remove OS agnostic files from Amazon SMP FreeRTOS port
The previous commit moved the OS agnostic files from the IDF FreeRTOS port to
the xtensa component, thus can be accessed by both IDF and Amazon SMP FreeRTOS.

This commit removes the redudant copies in the Amazon SMP FreeRTOS port.
2023-04-18 15:51:38 +08:00
Darian Leung
b2c074bb70 xtensa: Move Xtensa RTOS porting layer files to xtensa component
When porting an RTOS to the Xtensa architecture, there are a few files that
are common to all Xtensa RTOS ports. These files form the Xtensa RTOS porting
layer (e.g., "xtensa_vectors.S", "xtensa_context.S"). An Xtensa RTOS port is
expected to provide an RTOS specific "xtensa_rtos.h" header to interface with
the Xtensa RTOS porting layer.

Previously, the Xtensa RTOS porting layer files were placed in the FreeRTOS
component. This commit does the following:

1. Moves the Xtensa RTOS porting layer files from the `freertos` component to
the `xtensa` component. The following files were moved:

    - xtensa_asm_utils.h
    - xtensa_context.S
    - xtensa_loadstore_handler.S
    - xtensa_vectors.S

2. Refactored xtensa component include paths to separate Xtensa RTOS porting
layer headers.

- Xtensa HAL headers included via `#include <xtensa/...h>`
- Xtensa RTOS porting layer headers included via `#include <...h>`

Note: The xtensa files in the Amazon SMP FreeRTOS port are not moved/deleted in
this commit to ensure the moved files retain a clean diff history.
2023-04-18 15:28:05 +08:00
Shu Chen
e033d34baa Merge branch 'openthread/add_lock_check' into 'master'
openthread: Add check for lock acquire and release

See merge request espressif/esp-idf!23204
2023-04-18 15:17:38 +08:00
Zim Kalinowski
05cbd19f25 Merge branch 'feature/pthread_rwlock_try_functions' into 'master'
pthread: added pthread_rwlock_tryrd/rwlock()

Closes IDFGH-7685

See merge request espressif/esp-idf!23228
2023-04-18 14:43:54 +08:00
Ivan Grokhotkov
f64ac33554
nvs: fix string/blob comparison lengths in host tests 2023-04-18 08:02:38 +02:00
Zhang Xiao Yan
d98d168cd2 Merge branch 'docs/fix_typo_in_api-reference_system_ota' into 'master'
fix a typo in api-reference/system/ota

See merge request espressif/esp-idf!23212
2023-04-18 14:01:42 +08:00
Sonika Rathi
b31b68fc68 bugfix: fix for fatfs "open("xx",O_CREAT|O_WRONLY,0666)" call failure
fatfs 'open' with only O_CREAT flag fails to creat new file

Closes https://github.com/espressif/esp-idf/issues/1817
2023-04-18 09:57:44 +05:30
Song Ruo Jing
9cfc9757b9 Merge branch 'bugfix/allow_no_specify_uart_clk_src' into 'master'
uart: Allow omitting source_clk parameter to uart_param_config

Closes IDF-6951

See merge request espressif/esp-idf!23208
2023-04-18 11:34:11 +08:00
Armando
2225087756 emmc: temporarily removed esp32 emmc ut_017 2023-04-18 10:11:36 +08:00
Zim Kalinowski
a4cf0e24ac Merge branch 'feature/s2_ulp_riscv_adc' into 'master'
ulp-riscv: enable ULP-RISCV ADC example for esp32s2

Closes IDFGH-9716 and IDFGH-9700

See merge request espressif/esp-idf!23137
2023-04-18 02:31:35 +08:00
Mahavir Jain
6773ad6431 Merge branch 'fix/esp32s3_ununsed_dcache_as_dram' into 'master'
esp_hw_support: Update the memory ptr location/property checks to include the unused DCACHE added to DRAM

Closes IDF-7103

See merge request espressif/esp-idf!22904
2023-04-18 02:16:30 +08:00
morris
90c2786803 Merge branch 'bugfix/rmt_encode_state_init' into 'master'
rmt: define RMT_ENCODING_RESET in rmt_encode_state_t

Closes IDFGH-9881 and IDFGH-9882

See merge request espressif/esp-idf!23222
2023-04-17 21:22:20 +08:00
xieqinan
745780cdc4 comm_components: eth_start initializes spi bus with SPI_DMA_CH_AUTO
Close https://github.com/espressif/esp-idf/issues/11083
2023-04-17 12:02:05 +00:00
WanqQixiang
3ac08425f2 openthread: Add check for lock acquire and release 2023-04-17 19:56:49 +08:00
zwl
c4ec33e7ef Ble: bugfix for packet loss issue during connection on ESP32C6 2023-04-17 19:37:00 +08:00
Peter Dragun
faa82b060c feat(esptool): allow to set force for write_flash 2023-04-17 12:53:01 +02:00
Shreyas Sheth
1a0633646e esp_wifi: Bugfix store authmode security in NVS 2023-04-17 15:16:21 +05:30
Peter Dragun
bebd2cec4a bug(idf_monitor): fix color on windows with hints
Closes https://github.com/espressif/esp-idf/issues/9610
2023-04-17 11:18:42 +02:00
Darian Leung
525de5bd21 usb_host: Update docs and comments regarding first configuration enumeration
This commit updates some comments and documentation regarding changes made in
PR https://github.com/espressif/esp-idf/pull/11113.
2023-04-17 17:06:54 +08:00
Kevin (Lao Kaiyao)
96f2d215a2 Merge branch 'bugfix/i2s_output_wrong_freq_after_switch' into 'master'
i2s: workaround for inaccurate PLL frequency after switching

Closes IDF-6705 and IDFCI-1669

See merge request espressif/esp-idf!22975
2023-04-17 16:26:18 +08:00
Jakob Hasse
e7312cccea pthread: added pthread_rwlock_tryrd/wrlock()
Closes https://github.com/espressif/esp-idf/issues/9229
2023-04-17 16:16:11 +08:00
morris
2a5ee5c3e2 Merge branch 'bugfix/spi_lcd_max_trans_size' into 'master'
spi_lcd: maximum transfer size should respect bus configuration

Closes IDF-6901 and IDF-4829

See merge request espressif/esp-idf!23149
2023-04-17 16:13:57 +08:00
Song Ruo Jing
3f2bed1f5c uart: Allow the users to not specify the source_clk in uart_config_t when calling uart_param_config 2023-04-17 15:43:06 +08:00
harshal.patil
c403affd98 mbedtls: fix ci failures for update v3.4.0
- While updating to mbedtls release/v3.4.0, building mbedtls/library/psa_crypto.c,
clang produced an unreachable-code warning, so added `-Wno-unreachable-code` compile option for clang.
- In `mbedtls/v3.4.0`, the ECDSA restartable sign and verify functions (`ecdsa.c`) were made public.
- But the `mbedtls_ecdsa_sign_det_restartable` function prototype was declared in the file `ecdsa.h`,
only when `MBEDTLS_ECDSA_SIGN_ALT` was not defined.
- added a patch in mbedtls library to fix it.
2023-04-17 12:55:04 +05:30
harshal.patil
9c3a6c4f53 mbedtls: replace low-level sha apis with md apis in esp_ssl_tls 2023-04-17 12:50:15 +05:30
harshal.patil
f30b58f665 mbedtls: Update config options as per release/v3.4.0
- Added a Kconfig option for the newly added mbedtls option MBEDTLS_PKCS7_C
2023-04-17 12:50:15 +05:30
harshal.patil
002a451bf8 mbedtls: Update to release/v3.4.0
- Release Notes: https://github.com/Mbed-TLS/mbedtls/releases/tag/v3.4.0
2023-04-17 12:50:15 +05:30
Wan Lei
029b56dc1c Merge branch 'ci/pytest_case_tester_script_fix' into 'master'
ci: pytest automation script increase timeout time

See merge request espressif/esp-idf!23201
2023-04-17 15:03:23 +08:00
Omar Chebib
3bc3f87209 Merge branch 'bugfix/i2c_timing_wrong' into 'master'
i2c: fix a bug in sda sample timing

Closes IDFGH-8295

See merge request espressif/esp-idf!23185
2023-04-17 15:00:42 +08:00
morris
b19a3e3e56 rmt: define RMT_ENCODING_RESET in rmt_encode_state_t
Closes https://github.com/espressif/esp-idf/issues/11200
2023-04-17 14:50:51 +08:00
Laukik Hase
11d5550da3
soc/esp32s3: Fix the SOC_MEM_INTERNAL_HIGH value
- As per the memory block diagram for ESP32-S3, the
  internal memory address ranges as follows:
  DRAM: 0x3FC88000 (== SOC_MEM_INTERNAL_LOW) <-> 0x3FCF0000
  IRAM: 0x40378000 <-> 0x403E0000 (== SOC_MEM_INTERNAL_HIGH)
2023-04-17 10:49:06 +05:30
Laukik Hase
f6aadd1e39
esp_hw_support: Update memory ptr location/property checks
- to acknowledge the unused DCACHE added to DRAM for ESP32-S3

- For ESP32-S3, when the DCACHE size is set to 16 kB, the unused 48 kB is added to
  the heap in 2 blocks of 32 kB (from 0x3FCF0000) and 16 kB (from 0x3C000000).
- But, if we try allocating memory from the 16 kB block and run an `esp_ptr_internal`
  check on that memory pointer, it fails as the address block from 0x3C000000
  corresponds to the external memory symbols SOC_DROM_LOW and SOC_EXTRAM_DATA_LOW.
  (E.g. freertos - If the IDLE task stack buffer gets allocated from this region,
  the firmware will abort due to this failure).
- Thus, the checks `esp_ptr_internal`, `esp_ptr_in_drom` and `esp_ptr_byte_accessible`
  have been updated to acknowledge this memory as a part of the DRAM.

Co-authored-by: Mahavir Jain <mahavir@espressif.com>
2023-04-17 10:42:04 +05:30
zwj
feb5edf8b0 improve scan performance when scan and sync coexist on ESP32-C3 and ESP32-S3 2023-04-17 12:27:08 +08:00
Armando (Dou Yiwen)
ef64e4e5b3 Merge branch 'feature/emmc_example' into 'master'
SDMMC Host: added an example to communicate with an eMMC chip

Closes IDF-7157, IDF-4739, and IDFGH-6901

See merge request espressif/esp-idf!21760
2023-04-17 11:53:55 +08:00
Marius Vikhammer
6acd082cc8 Merge branch 'docs/iram_sram_config' into 'master'
docs: update CONFIG_ESP_SYSTEM_ESP32_SRAM1_REGION_AS_IRAM docs to better reflect the limitations

See merge request espressif/esp-idf!23158
2023-04-17 11:51:05 +08:00
laokaiyao
a143a85822 i2s: workaround for inacurate PLL frequency after switching 2023-04-17 03:15:55 +00:00
Zhi Wei Jian
bc216802c6 Merge branch 'bugfix/fix_bleqabr23_98' into 'master'
Bluedroid: fix GATTC cache address saving

Closes BLEQABR23-98 and BLEQABR23-34

See merge request espressif/esp-idf!22970
2023-04-17 10:54:31 +08:00
Zhi Wei Jian
e58e271230 Merge branch 'bugfix/fix_bleqabr23_137' into 'master'
Fixed non-connectable and non-scannable directed adv can't be scanned

See merge request espressif/esp-idf!23198
2023-04-17 10:52:11 +08:00
wanlei
ad1ba78129 sdio: test_sdio add unity sync signals 2023-04-17 10:51:46 +08:00
Jakob Hasse
999fa28187 pthread: removed IRAM code from pthread
* Currently, the underlying FreeRTOS API functions
  used for the pthread implementation are not
  ISR-safe, hence the removal of IRAM placement.
2023-04-17 10:19:33 +08:00
Mahavir Jain
225be9a6ce Merge branch 'feature/esp_tls_add_getter_setter' into 'master'
esp-tls: Added getter/setter function for the conn_state.

Closes IDFGH-9514

See merge request espressif/esp-idf!23128
2023-04-16 22:15:28 +08:00
Anton Maklakov
b7abcb52b6 Merge branch 'ci/create_esp-dockerfile_MR_after_tools.json_updated' into 'master'
CI: created job and script for creating MR to esp-dockerfiles, added script execution to CI pipeline

Closes IDFCI-1445

See merge request espressif/esp-idf!21348
2023-04-15 01:40:05 +08:00
Ondrej Kosta
34850de22b Merge branch 'bugfix/eth_l2_test_switch' into 'master'
LAN8720 & IP101 L2 Test Fix

Closes IDFCI-1624 and IDFCI-1567

See merge request espressif/esp-idf!22907
2023-04-14 20:53:08 +08:00
Jiang Jiang Jian
c47d83cbcc Merge branch 'fix/update_codeowner_for_common_components' into 'master'
codeowner: update codeowner for common components

See merge request espressif/esp-idf!23066
2023-04-14 19:30:48 +08:00
Daniel Paul
b987b34829 CI: created script for creating MR to esp-dockerfiles, added script execution to CI pipeline 2023-04-14 13:29:08 +02:00
Armando
920ecff168 sdmmc: in/out phase adapted to esp32 and esp32s3 2023-04-14 18:18:54 +08:00
Ivan Grokhotkov
e9badf51c7 sdmmc: I/O phase adjustments
1. Fix incorrect meaning of SDMMC.clock bits, synchronize the names
   with the TRM.
2. Choose input and output phases to satisfy typical timing
   requirements.
3. Move use_hold_reg setting into the host driver, since it is related
   to timing.

Closes https://github.com/espressif/esp-idf/issues/8521
Related to https://github.com/espressif/esp-idf/issues/8257
2023-04-14 18:18:54 +08:00
Armando
ad46b43c2c sdmmc: add an example communicating with eMMC chip on S3 2023-04-14 18:18:54 +08:00
Jakob Hasse
6991a92895 docs: added new C++ language standard 2023-04-14 17:57:01 +08:00
Jakob Hasse
8f7a076619 cmake: C++23 only when not using clang 2023-04-14 17:57:01 +08:00