Merge branch 'fix_c5_spi_master_slave_rx_issue' into 'master'

fix(driver_spi): fixed c5/c61/h21 rx issue and support c61 eco3 changes

Closes IDF-12880 and IDF-9300

See merge request espressif/esp-idf!40026
This commit is contained in:
Wan Lei
2025-07-02 10:57:09 +08:00
5 changed files with 32 additions and 15 deletions
+6 -4
View File
@@ -6,12 +6,10 @@
/*******************************************************************************
* NOTICE
* The hal is not public api, don't use in application code.
* See readme.md in soc/include/hal/readme.md
* The LL layer for ESP32C5 SPI register operations
* It is NOT public api, don't use in application code.
******************************************************************************/
// The LL layer for SPI register operations
#pragma once
#include <stdlib.h> //for abs()
@@ -198,6 +196,10 @@ static inline void spi_ll_master_init(spi_dev_t *hw)
hw->user.usr_miso_highpart = 0;
hw->user.usr_mosi_highpart = 0;
//Disable unused error_end condition
hw->user1.mst_wfull_err_end_en = 0;
hw->user2.mst_rempty_err_end_en = 0;
//Disable unneeded ints
hw->slave.val = 0;
hw->user.val = 0;