#include <stdio.h>
#include "board.h"
#include "hif.h"
#include "radio.h"
#include "xmpl.h"
int main(void)
{
#define XMPL_FRAME_SIZE (40)
uint8_t txbuf[
sizeof(
buffer_t) + XMPL_FRAME_SIZE + 2];
uint8_t frame_header[] = {0x01, 0x80, 0, 0x11,0x22,0x33,0x44};
char limmerick[] = "A wonderful bird is the pelican,\n\r"
"His bill will hold more than his belican,\n\r"
"He can take in his beak\n\r"
"Enough food for a week\n\r"
"But I'm damned if I see how the helican!\n\r\n\r";
char *plim;
pbuf =
buffer_init(txbuf,
sizeof(txbuf)-2,
sizeof(frame_header));
plim = limmerick;
while(1)
{
do
{
{
break;
}
plim++;
}
while (*plim != 0 && *plim != '\n');
WAIT_MS(500);
BUFFER_RESET(pbuf,sizeof(frame_header));
frame_header[2]++;
if (*plim == 0) plim = limmerick;
}
}