fix(driver_spi): fixed esp32p4 gpspi with dma potential crash or stuck

This commit is contained in:
wanckl
2026-06-24 16:27:09 +08:00
committed by Wan Lei
parent 8ee2dce0d6
commit b613aac106
2 changed files with 11 additions and 0 deletions
@@ -24,6 +24,8 @@ extern "C"
{
#endif
#define SPI_ALIGN_UP(num, align) (((num) + ((align) - 1)) & ~((align) - 1))
//NOTE!! If both A and B are not defined, '#if (A==B)' is true, because GCC use 0 stand for undefined symbol
#if SOC_GPSPI_SUPPORTED && defined(SOC_GDMA_BUS_AXI) && (SOC_GDMA_TRIG_PERIPH_SPI2_BUS == SOC_GDMA_BUS_AXI)
#define DMA_DESC_MEM_ALIGN_SIZE 8