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; }
void uart_init(const unsigned int uart_num, uint32_t module_clk_hz, const uint32_t baud)
Initialize UART.
int main(void)
This is main...
#define UART1
Peripheral UART1 base pointer.