1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-18 07:52:14 +01:00

Add SPI_HAS_TRANSACTION symbol for Arduino Due

This commit is contained in:
PaulStoffregen 2014-08-01 13:00:29 -07:00
parent f7a565de1a
commit ef06410d16

View File

@ -15,6 +15,10 @@
#include "variant.h"
#include <stdio.h>
// 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