48 #define PAYLOAD_LEN 16
51 void fill_packet(
volatile packet_t *p) {
52 static volatile uint8_t
count=0;
54 p->length = PAYLOAD_LEN;
56 for(i=0; i<PAYLOAD_LEN; i++) {
63 p->data[0] |= (1 << 3);
85 *GPIO_FUNC_SEL2 = (0x01 << ((44-16*2)*2));
86 gpio_pad_dir_set( 1ULL << 44 );
88 print_welcome(
"rftest-tx");
96 while((p = rx_packet())) {
97 if(p) maca_free_packet(p);
100 p = get_free_packet();
104 printf(
"rftest-tx --- ");
109 for(i=0; i<DELAY; i++) {
continue; }
#define UART1
Peripheral UART1 base pointer.
void uart_init(uint8_t uart)
Initialises the UART controller, configures I/O control and interrupts.
static volatile clock_time_t count
These routines define the AVR-specific calls declared in /core/sys/clock.h CLOCK_SECOND is the number...