Skip to content

Commit

Permalink
Fix esp-idf v5.3 compilation error with esp32p4
Browse files Browse the repository at this point in the history
  • Loading branch information
tobozo authored Jul 26, 2024
1 parent 711d085 commit bc744ba
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/lgfx/v1/platforms/esp32/Bus_SPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,16 @@ Original Source:

#if defined (SOC_GDMA_SUPPORTED) // for C3/C6/S3
#include <soc/gdma_channel.h>
#include <soc/gdma_reg.h>
#include <soc/gdma_struct.h>
#if __has_include(<soc/gdma_reg.h>)
#include <soc/gdma_reg.h>
#elif __has_include(<soc/axi_dma_reg.h>) // ESP32P4
#include <soc/axi_dma_reg.h>
#endif
#if __has_include(<soc/gdma_struct.h>)
#include <soc/gdma_struct.h>
#elif __has_include(<soc/axi_dma_struct.h>) // ESP32P4
#include <soc/axi_dma_struct.h>
#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
Expand Down

0 comments on commit bc744ba

Please sign in to comment.