Skip to content

Commit

Permalink
tweak for ESP32C6
Browse files Browse the repository at this point in the history
  • Loading branch information
lovyan03 committed May 19, 2024
1 parent fb8d2a2 commit d6c6e88
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 7 additions & 1 deletion src/lgfx/v1/platforms/device.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ Original Source:

#include <sdkconfig.h>

#if defined (CONFIG_IDF_TARGET_ESP32C3)
#if defined (CONFIG_IDF_TARGET_ESP32C6)

#include "esp32/Light_PWM.hpp"
#include "esp32/Bus_SPI.hpp"
#include "esp32/Bus_I2C.hpp"

#elif defined (CONFIG_IDF_TARGET_ESP32C3)

#include "esp32/Light_PWM.hpp"
#include "esp32/Bus_SPI.hpp"
Expand Down
7 changes: 4 additions & 3 deletions src/lgfx/v1/platforms/esp32/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,13 @@ Original Source:
#if !defined (DMA_IN_PERI_SEL_CH0_REG)
#define DMA_IN_PERI_SEL_CH0_REG GDMA_IN_PERI_SEL_CH0_REG
#endif
#endif

#if (ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 3, 0))
#define SOC_GDMA_PAIRS_PER_GROUP_MAX SOC_GDMA_PAIRS_PER_GROUP
#if !defined (SOC_GDMA_PAIRS_PER_GROUP_MAX)
#define SOC_GDMA_PAIRS_PER_GROUP_MAX SOC_GDMA_PAIRS_PER_GROUP
#endif
#endif


#if defined ( ARDUINO )
#if __has_include (<SPI.h>)
#include <SPI.h>
Expand Down

0 comments on commit d6c6e88

Please sign in to comment.