aboutsummaryrefslogtreecommitdiff
path: root/src/lib.c
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2021-12-03 12:37:40 -0700
committerChristian Cunningham <cc@localhost>2021-12-03 12:37:40 -0700
commit7a94e7e72550dd8d9018142cae2a4d2b426d011f (patch)
tree207f779f23e8e68d4490c1eb0505799a32ef194a /src/lib.c
parent7bc249d674be59cf60eee6a7573c11ddfe79528e (diff)
Output the timer in b10 and b16
Diffstat (limited to 'src/lib.c')
-rw-r--r--src/lib.c7
1 files changed, 5 insertions, 2 deletions
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);