Fix for compiling on NRF52.
SPI_BITORDER_MSBFIRST / SPI_BITORDER_LSBFIRST not defined when compiling on nrf52.
This commit is contained in:
parent
03c635d2c2
commit
fe7ae08615
|
|
@ -20,7 +20,7 @@ typedef enum _BitOrder {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Some platforms have a BitOrder enum but its named MSBFIRST/LSBFIRST
|
// Some platforms have a BitOrder enum but its named MSBFIRST/LSBFIRST
|
||||||
#if defined(ARDUINO_ARCH_SAMD) || defined(__SAM3X8E__)
|
#if defined(ARDUINO_ARCH_SAMD) || defined(__SAM3X8E__) || defined(ARDUINO_ARCH_NRF52)
|
||||||
#define SPI_BITORDER_MSBFIRST MSBFIRST
|
#define SPI_BITORDER_MSBFIRST MSBFIRST
|
||||||
#define SPI_BITORDER_LSBFIRST LSBFIRST
|
#define SPI_BITORDER_LSBFIRST LSBFIRST
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue