Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
lovyan03 committed Nov 6, 2024
1 parent 56c8768 commit d715d58
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/lgfx/v1/platforms/esp32/Bus_SPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Original Source:
#endif

#ifndef SPI_PIN_REG
#define SPI_PIN_REG SPI_MISC_REG
#define SPI_PIN_REG(i) SPI_MISC_REG(i)
#endif

#if defined (SOC_GDMA_SUPPORTED) // for C3/C6/S3
Expand Down
15 changes: 9 additions & 6 deletions src/lgfx/v1/platforms/esp32/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,16 @@ Original Source:
#include <soc/soc.h>
#include <soc/i2c_reg.h>
#include <soc/i2c_struct.h>

#if __has_include(<soc/syscon_reg.h>)
#include <soc/syscon_reg.h>
#elif __has_include (<soc/apb_ctrl_reg.h>)
#include <soc/apb_ctrl_reg.h>
#if (ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 3, 0))
//#include <soc/syscon_reg.h>
#if __has_include(<soc/syscon_reg.h>)
#include <soc/syscon_reg.h>
#endif
#else
#if __has_include (<soc/apb_ctrl_reg.h>)
#include <soc/apb_ctrl_reg.h>
#endif
#endif

#include <soc/efuse_reg.h>

#include <esp_log.h>
Expand Down

0 comments on commit d715d58

Please sign in to comment.