summaryrefslogtreecommitdiffstats
path: root/main.c
blob: 8c108a7429a53fdf7a340ee2b43e40c2cc841e0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdint.h>
#include <string.h>

#include "nrfm.h"
#include "uart.h"

int main(void)
{
	const char *s = "hello world!";

	uint8_t rxaddr[] = { 194, 178, 82 };
	uint8_t txaddr[] = { 194, 178, 83 };

	uart_init();
	radio_init(rxaddr);
	radio_print_config();
	radio_sendto(txaddr, s, strlen(s));

	return 0;
}