diff --git a/settings.h b/settings.h index e3d0ed1d..e6ed5cf1 100644 --- a/settings.h +++ b/settings.h @@ -137,7 +137,7 @@ e-mail : support@circuitsathome.com #define USING_SPI4TEENSY3 0 #endif -#if defined(ARDUINO_SAM_DUE) && defined(__SAM3X8E__) +#if (defined(ARDUINO_SAM_DUE) && defined(__SAM3X8E__)) || defined(RBL_NRF51822) #include // Use the Arduino SPI library for the Arduino Due #endif diff --git a/usbhost.h b/usbhost.h index 46ef1346..f35bc0f4 100644 --- a/usbhost.h +++ b/usbhost.h @@ -27,9 +27,7 @@ e-mail : support@circuitsathome.com #include #endif -#if defined(RBL_NRF51822) -#include "SPI.H" -#endif + /* SPI initialization */ template< typename SPI_CLK, typename SPI_MOSI, typename SPI_MISO, typename SPI_SS > class SPi { public: