Skip to content

Commit

Permalink
disable QSPI for arduino core 1.x.x
Browse files Browse the repository at this point in the history
  • Loading branch information
tobozo committed Aug 20, 2024
1 parent f316c91 commit 104ab4c
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/lgfx/v1/platforms/esp32/Bus_QSPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@

#include "Bus_QSPI.hpp"

#if defined LGFX_USE_QSPI


/// ESP32-S3をターゲットにした際にREG_SPI_BASEが定義されていなかったので応急処置 ;
#if defined ( CONFIG_IDF_TARGET_ESP32S3 )
#if !defined( REG_SPI_BASE )
Expand Down Expand Up @@ -1101,3 +1104,4 @@ namespace lgfx
}

#endif
#endif
6 changes: 6 additions & 0 deletions src/lgfx/v1/platforms/esp32/Bus_QSPI.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
#include "../../Bus.hpp"
#include "../common.hpp"


#if defined LGFX_USE_QSPI


namespace lgfx
{
inline namespace v1
Expand Down Expand Up @@ -212,3 +216,5 @@ namespace lgfx
//----------------------------------------------------------------------------
}
}

#endif
4 changes: 2 additions & 2 deletions src/lgfx/v1/platforms/esp32/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,7 @@ namespace lgfx



#if defined LGFX_USE_QSPI

cpp::result<void, error_t> initQuad(int spi_host, int spi_sclk, int spi_io0, int spi_io1, int spi_io2, int spi_io3)
{
Expand Down Expand Up @@ -620,8 +621,7 @@ namespace lgfx
}




#endif



Expand Down
3 changes: 3 additions & 0 deletions src/lgfx/v1/platforms/esp32/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Original Source:
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0)
#define LGFX_IDF_V5
#endif
#define LGFX_USE_QSPI
#endif

namespace lgfx
Expand Down Expand Up @@ -258,7 +259,9 @@ namespace lgfx
namespace spi
{
cpp::result<void, error_t> init(int spi_host, int spi_sclk, int spi_miso, int spi_mosi, int dma_channel);
#if defined LGFX_USE_QSPI
cpp::result<void, error_t> initQuad(int spi_host, int spi_sclk, int spi_io0, int spi_io1, int spi_io2, int spi_io3, int dma_channel);
#endif
void beginTransaction(int spi_host);
}

Expand Down
1 change: 0 additions & 1 deletion src/lgfx/v1_init.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ Original Source:
#include "v1/panel/Panel_ST7735.hpp"
#include "v1/panel/Panel_ST7789.hpp"
#include "v1/panel/Panel_ST7796.hpp"
#include "v1/panel/Panel_SH8601Z.hpp"

// EPD
#include "v1/panel/Panel_GDEW0154M09.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/lgfx_user/LGFX_Monica.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*/
#pragma once
#include <LovyanGFX.hpp>
#include <lgfx/v1/panel/Panel_SH8601Z.hpp>


/// 独自の設定を行うクラスを、LGFX_Deviceから派生して作成します。
Expand Down

0 comments on commit 104ab4c

Please sign in to comment.