Update Adafruit_SPIDevice.h for Sony Spresense.

Add support for the Sony Spresense architecture. This has no BitOrder enum, so it's added here.
This commit is contained in:
Roelof 2020-05-22 19:32:35 +02:00 committed by GitHub
parent 3b77f67ae6
commit 9cc2bcc2d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,8 @@
// some modern SPI definitions don't have BitOrder enum // some modern SPI definitions don't have BitOrder enum
#if (defined(__AVR__) && !defined(ARDUINO_ARCH_MEGAAVR)) || \ #if (defined(__AVR__) && !defined(ARDUINO_ARCH_MEGAAVR)) || \
defined(ESP8266) || defined(TEENSYDUINO) defined(ESP8266) || defined(TEENSYDUINO) || \
defined(ARDUINO_ARCH_SPRESENSE)
typedef enum _BitOrder { typedef enum _BitOrder {
SPI_BITORDER_MSBFIRST = MSBFIRST, SPI_BITORDER_MSBFIRST = MSBFIRST,
SPI_BITORDER_LSBFIRST = LSBFIRST, SPI_BITORDER_LSBFIRST = LSBFIRST,