#include "archinc.h"
#include "config.h"
#include "spimesg.h"
#include "spi.h"

#ifdef CONFIG_INCLUDE_SPIMESG

#define CONFIG_SPIPROT_NUM_RECV_FRAMES (4)
#define CONFIG_SPIPROT_RECV_FRAME_SIZE (128)

static char receivedFrames[CONFIG_SPIPROT_NUM_RECV_FRAMES][CONFIG_SPIPROT_RECV_FRAME_SIZE];

// bit = frame number, 0 = frame free, 1 = frame in use
static int receivedFrameStatus[CONFIG_SPIPROT_NUM_RECV_FRAMES];

int spimesgInit(void)
{
  return 0;
}

#endif /* CONFIG_INCLUDE_SPIMESG */
