Kaynağa Gözat

Merge branch 'bugfix/spi_ll_intr_bits_v4.3' into 'release/v4.3'

spi: Fix wrong target register for interrupt disable (v4.3)

See merge request espressif/esp-idf!14404
Michael (XIAO Xufeng) 4 yıl önce
ebeveyn
işleme
14977d7561

+ 1 - 1
components/hal/esp32c3/include/hal/spi_ll.h

@@ -139,7 +139,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;
 }
 
 /**

+ 1 - 1
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;
 }
 
 /**