Moved include for nRF51822

Moved the include into the right file.
This commit is contained in:
Matt Sieren 2014-11-22 09:53:59 +01:00
parent 3646c650b6
commit 4cf9f34228
2 changed files with 2 additions and 4 deletions

View file

@ -137,7 +137,7 @@ e-mail : support@circuitsathome.com
#define USING_SPI4TEENSY3 0 #define USING_SPI4TEENSY3 0
#endif #endif
#if defined(ARDUINO_SAM_DUE) && defined(__SAM3X8E__) #if (defined(ARDUINO_SAM_DUE) && defined(__SAM3X8E__)) || defined(RBL_NRF51822)
#include <SPI.h> // Use the Arduino SPI library for the Arduino Due #include <SPI.h> // Use the Arduino SPI library for the Arduino Due
#endif #endif

View file

@ -27,9 +27,7 @@ e-mail : support@circuitsathome.com
#include <sys/types.h> #include <sys/types.h>
#endif #endif
#if defined(RBL_NRF51822)
#include "SPI.H"
#endif
/* SPI initialization */ /* SPI initialization */
template< typename SPI_CLK, typename SPI_MOSI, typename SPI_MISO, typename SPI_SS > class SPi { template< typename SPI_CLK, typename SPI_MOSI, typename SPI_MISO, typename SPI_SS > class SPi {
public: public: