diff options
author | Christian Cunningham <cc@localhost> | 2021-12-03 12:37:40 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2021-12-03 12:37:40 -0700 |
commit | 7a94e7e72550dd8d9018142cae2a4d2b426d011f (patch) | |
tree | 207f779f23e8e68d4490c1eb0505799a32ef194a /src/lib.c | |
parent | 7bc249d674be59cf60eee6a7573c11ddfe79528e (diff) |
Output the timer in b10 and b16
Diffstat (limited to 'src/lib.c')
-rw-r--r-- | src/lib.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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); |