From 7a94e7e72550dd8d9018142cae2a4d2b426d011f Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Fri, 3 Dec 2021 12:37:40 -0700 Subject: Output the timer in b10 and b16 --- src/lib.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib.c b/src/lib.c index 9816bd4..1da7d65 100644 --- a/src/lib.c +++ b/src/lib.c @@ -76,7 +76,10 @@ void c_timer() { // Output the value uart_string((char*)"Timer Value: "); - uart_hexn(read_cntv_tval()); + unsigned long v = read_cntv_tval(); + uart_10(v); + uart_char(0x20); + uart_hexn(v); } // Checks IRQ status @@ -111,7 +114,7 @@ void chk_irq_stat() { if (ib_val & (1<<0)) { uart_string(irq_on); // Output the frequency - uart_string((char*)" Frequency : "); + uart_string((char*)" Frequency: "); cntfrq = read_cntfrq(); //uart_hexn(cntfrq); uart_10(cntfrq); -- cgit v1.2.1