42 void print_welcome(
char* testname) {
43 printf(
"mc1322x-test: %s\n\r",testname);
44 printf(
"board: %s\n\r", STR2(BOARD));
47 void print_packet(
volatile packet_t *p) {
48 volatile uint8_t i,j,k;
51 printf(
"len 0x%02x lqi 0x%02x rx_time 0x%08x", p->length, p->lqi, (
int)p->rx_time);
52 for(j=0, k=0; j <= ( (p->length) / PER_ROW ); j++) {
54 for(i=0; i < PER_ROW; i++, k++) {
59 printf(
"%02x ",p->data[j*PER_ROW + i + p->offset]);
67 void dump_regs(uint32_t base, uint32_t len) {
70 printf(
"base +0 +4 +8 +c +10 +14 +18 +1c \n\r");
71 for (i = 0; i < len; i ++) {
73 printf(
"%02lx",(uint32_t)(4 * i));
75 printf(
" %08lx",(uint32_t)*mem32(base+(4*i)));