mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-12 13:27:36 +00:00
fix(driver_spi): fixed c5/c61/h21 eco spi master rx and slave rx issue
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user