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:
parent
f7a565de1a
commit
ef06410d16
@ -15,6 +15,10 @@
|
|||||||
#include "variant.h"
|
#include "variant.h"
|
||||||
#include <stdio.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_MODE0 0x02
|
||||||
#define SPI_MODE1 0x00
|
#define SPI_MODE1 0x00
|
||||||
#define SPI_MODE2 0x03
|
#define SPI_MODE2 0x03
|
||||||
|
Loading…
x
Reference in New Issue
Block a user