154#include <SPI.h>// Use the Arduino SPI library for the Arduino Due, Intel Galileo 1 & 2, Intel Edison or if the SPI library with transaction is available
155#endif
156#ifdef RBL_NRF51822
157#include <nrf_gpio.h>
158#include <SPI_Master.h>
159#define SPI SPI_Master
160#define MFK_CASTUINT8T (uint8_t) // RBLs return type for sizeof needs casting to uint8_t