fix(driver_spi): fixed c5/c61/h21 eco spi master rx and slave rx issue

This commit is contained in:
wanckl
2025-06-13 21:53:48 +08:00
parent 7f325d47bf
commit a48afb4711
5 changed files with 30 additions and 13 deletions

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;