45 void maca_rx_callback(
volatile packet_t *p) {
47 gpio_data_set(1ULL<< LED);
48 gpio_data_reset(1ULL<< LED);
53 volatile uint8_t chan;
57 gpio_pad_dir_set( 1ULL << LED );
60 gpio_data_sel( 1ULL << LED);
65 uart_init(INC, MOD, SAMP);
73 gpio_pad_dir_set( 1ULL << 44 );
79 print_welcome(
"rftest-rx");
86 if((p = rx_packet())) {
88 printf(
"rftest-rx --- ");
96 if(chan >= 16) { chan = 0; }
98 printf(
"channel: %d\n\r", chan);