lexus2k / lcdgfx

Driver for LCD displays running on Arduino/Avr/ESP32/Linux (including Rasperry) platforms
MIT License
360 stars 51 forks source link

Build Failing on ESP32-C3 - No SPI3_HOST #119

Open falo2k opened 5 days ago

falo2k commented 5 days ago

Describe the bug The build fails for the ESP32-C3 due to SPI3_HOST not being defined. Error hits in the macros at the top of esp32_spi.cpp where it tries to #define VSPI_HOST SPI3_HOST

To Reproduce Steps to reproduce the behavior: Build a project against ESP32C3 Dev Module

esp32_spi.cpp: In member function void EspSpi::begin()

esp32_spi.cpp: 37:25: error: 'SPI3_HOST' was not declared in this scope; did you mean 'SPI2_HOST'?
   37 |     #define VSPI_HOST   SPI3_HOST
   |                         ^~~~~~~~~
esp32_spi.cpp:103: note  in expansion of macro VSPI_HOST
   HSPI_HOST, &buscfg, 0); \\ 0 -no dma
   |                                  ^~~~~~~~~
esp32_spi.cpp: In member function void EspSpi::end()

esp32_spi.cpp: 37:25: error: 'SPI3_HOST' was not declared in this scope; did you mean 'SPI2_HOST'?
   37 |     #define VSPI_HOST   SPI3_HOST
   |                         ^~~~~~~~~
esp32_spi.cpp:120: note  in expansion of macro VSPI_HOST
   HSPI_HOST)
   |                            ^~~~~~~~~
esp32_spi.cpp: In member function void EspSpi::start()

esp32_spi.cpp: 37:25: error: 'SPI3_HOST' was not declared in this scope; did you mean 'SPI2_HOST'?
   37 |     #define VSPI_HOST   SPI3_HOST
   |                         ^~~~~~~~~
esp32_spi.cpp:146: note  in expansion of macro VSPI_HOST
   HSPI_HOST, &devcfg, &m_spi)
   |                                      ^~~~~~~~~
Error compiling libraries

Expected behavior Compilation without errors

Please complete the following information: