From ef06410d1659b6eafae9c935d906050b031c15cb Mon Sep 17 00:00:00 2001 From: PaulStoffregen Date: Fri, 1 Aug 2014 13:00:29 -0700 Subject: [PATCH] Add SPI_HAS_TRANSACTION symbol for Arduino Due --- hardware/arduino/sam/libraries/SPI/SPI.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hardware/arduino/sam/libraries/SPI/SPI.h b/hardware/arduino/sam/libraries/SPI/SPI.h index 49cfe3771..b0101392e 100644 --- a/hardware/arduino/sam/libraries/SPI/SPI.h +++ b/hardware/arduino/sam/libraries/SPI/SPI.h @@ -15,6 +15,10 @@ #include "variant.h" #include +// SPI_HAS_TRANSACTION means SPI has beginTransaction(), endTransaction(), +// usingInterrupt(), and SPISetting(clock, bitOrder, dataMode) +#define SPI_HAS_TRANSACTION 1 + #define SPI_MODE0 0x02 #define SPI_MODE1 0x00 #define SPI_MODE2 0x03