Merge branch 'fix/spi_dma_config_in_iram_v3.0' into 'release/v3.0'

spi: fix the issue that spi cannot be used when flash is disabled (backport v3.0)

See merge request idf/esp-idf!3076
This commit is contained in:
Angus Gratton 2018-08-27 08:13:55 +08:00
commit 39fb5d7150

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) {