Merge pull request #168 from KurtE/build_on_opencm_opencr

Fix compile errors USE_FAST_PINIO + compile on Robotis boards
This commit is contained in:
Limor "Ladyada" Fried 2018-07-26 10:43:23 -07:00 committed by GitHub
commit b9dfb41bc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -16,12 +16,14 @@
typedef volatile uint8_t RwReg;
#elif defined(ARDUINO_STM32_FEATHER)
typedef volatile uint32 RwReg;
#elif defined(__OPENCR__) || defined (__OPENCM904__)
#undef USE_FAST_PINIO
#elif defined(ARDUINO_FEATHER52) || defined(__arm__)
typedef volatile uint32_t RwReg;
#elif defined(ESP32) || defined(ESP8266)
typedef volatile uint32_t RwReg;
#else
#undefine USE_FAST_PINIO
#undef USE_FAST_PINIO
#endif
#include "Adafruit_SPITFT_Macros.h"

View File

@ -13,8 +13,8 @@
#else
#define SPI_DC_HIGH() digitalWrite(_dc, HIGH)
#define SPI_DC_LOW() digitalWrite(_dc, LOW)
#define SPI_CS_HIGH() { if(_cs >= 0) digitalWrite(_cs, HIGH) }
#define SPI_CS_LOW() { if(_cs >= 0) digitalWrite(_cs, LOW) }
#define SPI_CS_HIGH() { if(_cs >= 0) digitalWrite(_cs, HIGH); }
#define SPI_CS_LOW() { if(_cs >= 0) digitalWrite(_cs, LOW); }
#endif
/*