Merge pull request #36 from WereCatf/patch-1
Make compatible with Heltec's CubeCell Arduino-core
This commit is contained in:
commit
5ef1481a1f
|
|
@ -17,7 +17,7 @@ typedef enum _BitOrder {
|
||||||
SPI_BITORDER_LSBFIRST = LSBFIRST,
|
SPI_BITORDER_LSBFIRST = LSBFIRST,
|
||||||
} BitOrder;
|
} BitOrder;
|
||||||
|
|
||||||
#elif defined(ESP32)
|
#elif defined(ESP32) || defined(__ASR6501__)
|
||||||
|
|
||||||
// some modern SPI definitions don't have BitOrder enum and have different SPI
|
// some modern SPI definitions don't have BitOrder enum and have different SPI
|
||||||
// mode defines
|
// mode defines
|
||||||
|
|
@ -47,7 +47,9 @@ typedef uint32_t BusIO_PortMask;
|
||||||
!defined(ARDUINO_ARCH_MBED)
|
!defined(ARDUINO_ARCH_MBED)
|
||||||
typedef volatile uint32_t BusIO_PortReg;
|
typedef volatile uint32_t BusIO_PortReg;
|
||||||
typedef uint32_t BusIO_PortMask;
|
typedef uint32_t BusIO_PortMask;
|
||||||
|
#if not defined(__ASR6501__)
|
||||||
#define BUSIO_USE_FAST_PINIO
|
#define BUSIO_USE_FAST_PINIO
|
||||||
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#undef BUSIO_USE_FAST_PINIO
|
#undef BUSIO_USE_FAST_PINIO
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue