Permalink
Browse files

tmubench: send data to UART only

  • Loading branch information...
1 parent 7be5065 commit 64ec8317c8f387fa73512c6622a90492e7786738 @sbourdeauducq sbourdeauducq committed Jul 25, 2011
Showing with 7 additions and 1 deletion.
  1. +7 −1 software/demo/shell.c
View
8 software/demo/shell.c
@@ -552,6 +552,8 @@ static void tmubench()
volatile int complete;
unsigned int t;
int hits, reqs;
+ char buffer[64];
+ int j;
uart_force_sync(1);
@@ -599,7 +601,11 @@ static void tmubench()
t = CSR_TIMER1_COUNTER;
hits = CSR_TMU_HIT_A + CSR_TMU_HIT_B + CSR_TMU_HIT_C + CSR_TMU_HIT_D;
reqs = CSR_TMU_REQ_A + CSR_TMU_REQ_B + CSR_TMU_REQ_C + CSR_TMU_REQ_D;
- printf("%d,%d,%d\n", t, hits, reqs);
+ /* send to UART only */
+ sprintf(buffer, "%d,%d,%d\n", t, hits, reqs);
+ j = 0;
+ while(buffer[j])
+ uart_write(buffer[j++]);
vga_swap_buffers();
}

0 comments on commit 64ec831

Please sign in to comment.