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 t=20;
59 gpio_pad_dir_set( 1ULL << LED );
62 gpio_data_sel( 1ULL << LED);
67 uart_init(INC, MOD, SAMP);
74 *GPIO_FUNC_SEL2 = (0x01 << ((44-16*2)*2));
75 gpio_pad_dir_set( 1ULL << 44 );
81 *MACA_MACPANID = 0xaaaa;
82 *MACA_MAC16ADDR = 0x1111;
83 *MACA_TXACKDELAY = 68;
84 set_prm_mode(AUTOACK);
86 print_welcome(
"rftest-rx");
93 if((p = rx_packet())) {
95 printf(
"autoack-rx --- ");
100 if(uart1_can_get()) {
104 *MACA_TXACKDELAY = t;
105 printf(
"tx ack delay: %d\n\r", t);