spi: fix the issue that spi cannot be used when flash is disabled

The dma configuration function called in the ISR should be put into the IRAM.

Fixes https://github.com/espressif/esp-idf/issues/2307.
This commit is contained in:
Michael (XIAO Xufeng)
2018-08-20 18:27:38 +08:00
committed by michael
parent 997d291d85
commit cfed7c84ce

View File

@@ -344,7 +344,7 @@ void spicommon_cs_free(spi_host_device_t host, int cs_io_num)
}
//Set up a list of dma descriptors. dmadesc is an array of descriptors. Data is the buffer to point to.
void spicommon_setup_dma_desc_links(lldesc_t *dmadesc, int len, const uint8_t *data, bool isrx)
void IRAM_ATTR spicommon_setup_dma_desc_links(lldesc_t *dmadesc, int len, const uint8_t *data, bool isrx)
{
int n = 0;
while (len) {