mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/spi_master_crash_cache_disabled_v4.2' into 'release/v4.2'
spi_master: fix the crash when using interrupt mode when cache is disabled (v4.2) See merge request espressif/esp-idf!14682
This commit is contained in:
commit
de7fd4e93e
@ -487,13 +487,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.
|
// 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);
|
esp_intr_enable(((spi_host_t*)host)->intr);
|
||||||
}
|
}
|
||||||
|
|
||||||
// The interrupt is always disabled by the ISR itself, not exposed
|
// 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);
|
esp_intr_disable(((spi_host_t*)host)->intr);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user