diff --git a/src/lgfx/v1/platforms/esp32/Bus_SPI.cpp b/src/lgfx/v1/platforms/esp32/Bus_SPI.cpp index 2aa114b9..0aa28d69 100644 --- a/src/lgfx/v1/platforms/esp32/Bus_SPI.cpp +++ b/src/lgfx/v1/platforms/esp32/Bus_SPI.cpp @@ -69,8 +69,16 @@ Original Source: #if defined (SOC_GDMA_SUPPORTED) // for C3/C6/S3 #include - #include - #include + #if __has_include() + #include + #elif __has_include() // ESP32P4 + #include + #endif + #if __has_include() + #include + #elif __has_include() // ESP32P4 + #include + #endif #if !defined DMA_OUT_LINK_CH0_REG #define DMA_OUT_LINK_CH0_REG GDMA_OUT_LINK_CH0_REG #define DMA_OUTFIFO_STATUS_CH0_REG GDMA_OUTFIFO_STATUS_CH0_REG