#include <mrf24j40-arch.h>
//#include <WProgram.h>
#include <SPI/SPI.h>

#define PIN_SS 10

void arduino_SPI_SS_ACTIVE()
{
  digitalWrite(PIN_SS, LOW);
}

void arduino_SPI_SS_INACTIVE()
{
  digitalWrite(PIN_SS, HIGH);
}

void arduino_SPI_TXRX(char * idata)
{
  *idata= SPI.transfer(*idata);
}

void arduino_usleep(unsigned long us)
{
  delayMicroseconds(us);
}
