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);
73 uart_init(INC, MOD, SAMP);
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())) {
100 p = get_free_packet();
104 printf(
"rftest-tx --- ");
109 for(i=0; i<DELAY; i++) {
continue; }