Преглед изворни кода

Merge branch 'bugfix/spi_master_crash_cache_disabled' into 'master'

spi_master: fix the crash when using interrupt mode when cache is disabled

Closes IDFGH-4992

See merge request espressif/esp-idf!14660
Michael (XIAO Xufeng) пре 4 година
родитељ
комит
18e681ce2f
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      components/driver/spi_master.c

+ 2 - 2
components/driver/spi_master.c

@@ -496,13 +496,13 @@ static inline SPI_MASTER_ISR_ATTR bool spi_bus_device_is_polling(spi_device_t *d
 -----------------------------------------------------------------------------*/
 
 // The interrupt may get invoked by the bus lock.
-static void spi_bus_intr_enable(void *host)
+static void SPI_MASTER_ISR_ATTR spi_bus_intr_enable(void *host)
 {
     esp_intr_enable(((spi_host_t*)host)->intr);
 }
 
 // The interrupt is always disabled by the ISR itself, not exposed
-static void spi_bus_intr_disable(void *host)
+static void SPI_MASTER_ISR_ATTR spi_bus_intr_disable(void *host)
 {
     esp_intr_disable(((spi_host_t*)host)->intr);
 }