From de1a4f0c0d04777ed5f666960df1a3e5b09103ad Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Nihei Date: Fri, 21 May 2021 14:13:48 -0300 Subject: [PATCH] spi: Fix wrong target register for interrupt disable --- components/hal/esp32c3/include/hal/spi_ll.h | 2 +- components/hal/esp32s3/include/hal/spi_ll.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/hal/esp32c3/include/hal/spi_ll.h b/components/hal/esp32c3/include/hal/spi_ll.h index 5527ee1eb7..1bbdeb32ec 100644 --- a/components/hal/esp32c3/include/hal/spi_ll.h +++ b/components/hal/esp32c3/include/hal/spi_ll.h @@ -138,7 +138,7 @@ static inline void spi_ll_slave_init(spi_dev_t *hw) hw->dma_conf.dma_seg_trans_en = 0; //Disable unneeded ints - hw->slave.val &= ~SPI_LL_UNUSED_INT_MASK; + hw->dma_int_ena.val &= ~SPI_LL_UNUSED_INT_MASK; } /** diff --git a/components/hal/esp32s3/include/hal/spi_ll.h b/components/hal/esp32s3/include/hal/spi_ll.h index 8c040e20ef..7bb16b9081 100644 --- a/components/hal/esp32s3/include/hal/spi_ll.h +++ b/components/hal/esp32s3/include/hal/spi_ll.h @@ -138,7 +138,7 @@ static inline void spi_ll_slave_init(spi_dev_t *hw) hw->dma_conf.dma_seg_trans_en = 0; //Disable unneeded ints - hw->slave.val &= ~SPI_LL_UNUSED_INT_MASK; + hw->dma_int_ena.val &= ~SPI_LL_UNUSED_INT_MASK; } /**