mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
spi: limit esp32 dma workaround only on esp32
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user