mirror of
https://github.com/YuzuZensai/MCUFRIEND_kbv.git
synced 2026-01-31 14:57:48 +00:00
simplify SPECIAL delays
This commit is contained in:
@@ -1,11 +1,4 @@
|
||||
//#define USE_SPECIAL //check for custom drivers
|
||||
#if defined(USE_SPECIAL)
|
||||
#include "mcufriend_special.h"
|
||||
#if !defined(USE_SPECIAL_FAIL)
|
||||
#warning WE ARE USING A SPECIAL CUSTOM DRIVER
|
||||
#endif
|
||||
#endif
|
||||
#if !defined(USE_SPECIAL) || defined (USE_SPECIAL_FAIL)
|
||||
|
||||
#define WR_ACTIVE2 {WR_ACTIVE; WR_ACTIVE;}
|
||||
#define WR_ACTIVE4 {WR_ACTIVE2; WR_ACTIVE2;}
|
||||
@@ -15,6 +8,14 @@
|
||||
#define RD_ACTIVE8 {RD_ACTIVE4; RD_ACTIVE4;}
|
||||
#define RD_ACTIVE16 {RD_ACTIVE8; RD_ACTIVE8;}
|
||||
|
||||
#if defined(USE_SPECIAL)
|
||||
#include "mcufriend_special.h"
|
||||
#if !defined(USE_SPECIAL_FAIL)
|
||||
#warning WE ARE USING A SPECIAL CUSTOM DRIVER
|
||||
#endif
|
||||
#endif
|
||||
#if !defined(USE_SPECIAL) || defined (USE_SPECIAL_FAIL)
|
||||
|
||||
#if 0
|
||||
//################################### UNO ##############################
|
||||
#elif defined(__AVR_ATmega328P__) //regular UNO shield on UNO
|
||||
|
||||
Reference in New Issue
Block a user