152#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
153#endif
154#ifdef RBL_NRF51822
155#include <nrf_gpio.h>
156#include <SPI_Master.h>
157#define SPI SPI_Master
158#define MFK_CASTUINT8T (uint8_t) // RBLs return type for sizeof needs casting to uint8_t