Commit 960ff6c7 authored by Bodmer's avatar Bodmer

Ensure ESP32_PARALLEL defined

parent 232330d5
...@@ -39,17 +39,26 @@ ...@@ -39,17 +39,26 @@
// Define a generic flag for 8 bit parallel // Define a generic flag for 8 bit parallel
#if defined (ESP32_PARALLEL) // Specific to ESP32 for backwards compatibility #if defined (ESP32_PARALLEL) // Specific to ESP32 for backwards compatibility
#if !defined (TFT_PARALLEL_8_BIT)
#define TFT_PARALLEL_8_BIT // Generic parallel flag #define TFT_PARALLEL_8_BIT // Generic parallel flag
#endif
#endif
// Ensure ESP32 specific flag is defined for 8 bit parallel
#if defined (TFT_PARALLEL_8_BIT)
#if !defined (ESP32_PARALLEL)
#define ESP32_PARALLEL
#endif
#endif #endif
// Code to check if DMA is busy, used by SPI bus transaction transaction and endWrite functions // Code to check if DMA is busy, used by SPI bus transaction transaction and endWrite functions
#if !defined(TFT_PARALLEL_8_BIT) && !defined(ILI9488_DRIVER) && !defined (RPI_DISPLAY_TYPE) #if !defined(TFT_PARALLEL_8_BIT) && !defined(ILI9488_DRIVER) && !defined (RPI_DISPLAY_TYPE)
#define ESP32_DMA #define ESP32_DMA
// Code to check if DMA is busy, used by SPI DMA + transaction + endWrite functions // Code to check if DMA is busy, used by SPI DMA + transaction + endWrite functions
#define DMA_BUSY_CHECK { if (spiBusyCheck) dmaWait(); } #define DMA_BUSY_CHECK dmaWait()
#else #else
#define DMA_BUSY_CHECK #define DMA_BUSY_CHECK
#endif #endif
// If smooth font is used then it is likely SPIFFS will be needed // If smooth font is used then it is likely SPIFFS will be needed
#ifdef SMOOTH_FONT #ifdef SMOOTH_FONT
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment