Merge pull request #36 from WereCatf/patch-1

Make compatible with Heltec's CubeCell Arduino-core
This commit is contained in:
Limor "Ladyada" Fried 2020-11-23 17:41:07 -05:00 committed by GitHub
commit 5ef1481a1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -17,7 +17,7 @@ typedef enum _BitOrder {
SPI_BITORDER_LSBFIRST = LSBFIRST,
} BitOrder;
#elif defined(ESP32)
#elif defined(ESP32) || defined(__ASR6501__)
// some modern SPI definitions don't have BitOrder enum and have different SPI
// mode defines
@ -47,7 +47,9 @@ typedef uint32_t BusIO_PortMask;
!defined(ARDUINO_ARCH_MBED)
typedef volatile uint32_t BusIO_PortReg;
typedef uint32_t BusIO_PortMask;
#if not defined(__ASR6501__)
#define BUSIO_USE_FAST_PINIO
#endif
#else
#undef BUSIO_USE_FAST_PINIO