From 209e73bd72d84e178a26fd00bbdc22dc0a6b15d9 Mon Sep 17 00:00:00 2001 From: Matt Sieren Date: Fri, 26 Feb 2016 11:41:18 +0100 Subject: [PATCH] Add RBL SDK (S130) Headers Add the new SPI Headers and re-direct to the new SPI Interface. --- settings.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/settings.h b/settings.h index 6c1979af..97b46a0b 100644 --- a/settings.h +++ b/settings.h @@ -135,8 +135,13 @@ e-mail : support@circuitsathome.com #define USING_SPI4TEENSY3 0 #endif -#if ((defined(ARDUINO_SAM_DUE) && defined(__SAM3X8E__)) || defined(RBL_NRF51822) || defined(__ARDUINO_X86__) || ARDUINO >= 10600) && !USING_SPI4TEENSY3 -#include // Use the Arduino SPI library for the Arduino Due, RedBearLab nRF51822, Intel Galileo 1 & 2, Intel Edison or if the SPI library with transaction is available +#if ((defined(ARDUINO_SAM_DUE) && defined(__SAM3X8E__)) || defined(__ARDUINO_X86__) || ARDUINO >= 10600) && !USING_SPI4TEENSY3 +#include // Use the Arduino SPI library for the Arduino Due, Intel Galileo 1 & 2, Intel Edison or if the SPI library with transaction is available +#endif +#ifdef RBL_NRF51822 +#include +#include +#define SPI SPI_Master #endif #if defined(__PIC32MX__) || defined(__PIC32MZ__) #include <../../../../hardware/pic32/libraries/SPI/SPI.h> // Hack to use the SPI library