spi: limit esp32 dma workaround only on esp32

This commit is contained in:
Armando
2022-09-15 18:26:12 +08:00
committed by wanlei
parent a7289587d3
commit ea0b839302
6 changed files with 37 additions and 18 deletions

View File

@@ -98,6 +98,8 @@ uint32_t spi_slave_hal_get_rcv_bitlen(spi_slave_hal_context_t *hal)
return hal->rcv_bitlen;
}
#if CONFIG_IDF_TARGET_ESP32
//This workaround is only for esp32
bool spi_slave_hal_dma_need_reset(const spi_slave_hal_context_t *hal)
{
bool ret;
@@ -114,3 +116,4 @@ bool spi_slave_hal_dma_need_reset(const spi_slave_hal_context_t *hal)
}
return ret;
}
#endif //#if CONFIG_IDF_TARGET_ESP32