Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TFT_eSPI
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
TFT_eSPI
Commits
cc3a1084
Commit
cc3a1084
authored
May 09, 2020
by
Bodmer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #617
parent
cc4f35f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
Processors/TFT_eSPI_ESP32.h
Processors/TFT_eSPI_ESP32.h
+8
-10
No files found.
Processors/TFT_eSPI_ESP32.h
View file @
cc3a1084
...
@@ -42,6 +42,14 @@
...
@@ -42,6 +42,14 @@
#define TFT_PARALLEL_8_BIT // Generic parallel flag
#define TFT_PARALLEL_8_BIT // Generic parallel flag
#endif
#endif
// 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)
#define ESP32_DMA
// Code to check if DMA is busy, used by SPI DMA + transaction + endWrite functions
#define DMA_BUSY_CHECK { if (spiBusyCheck) dmaWait(); }
#else
#define DMA_BUSY_CHECK
#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
...
@@ -302,16 +310,6 @@
...
@@ -302,16 +310,6 @@
////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////
#else
#else
#define ESP32_DMA // DMA is available for SPI
// Code to check if DMA is busy, used by SPI bus transaction transaction and endWrite functions
#ifdef ESP32_DMA
// Code to check if DMA is busy, used by SPI DMA + transaction + endWrite functions
#define DMA_BUSY_CHECK { if (spiBusyCheck) dmaWait(); }
#else
#define DMA_BUSY_CHECK
#endif
// ESP32 low level SPI writes for 8, 16 and 32 bit values
// ESP32 low level SPI writes for 8, 16 and 32 bit values
// to avoid the function call overhead
// to avoid the function call overhead
#define TFT_WRITE_BITS(D, B) \
#define TFT_WRITE_BITS(D, B) \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment