From 667e5e8cf02e3d5c530d76fa1921bafdd460b70c Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Fri, 25 Mar 2022 12:14:11 -0700 Subject: Uart and GPIO IRQ --- usr/timed.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'usr/timed.c') diff --git a/usr/timed.c b/usr/timed.c index fd4f923..5f3b52e 100644 --- a/usr/timed.c +++ b/usr/timed.c @@ -28,6 +28,8 @@ void consumer(void) void loop(void) { + unsigned long long ti, tf; + sys0_64(SYS_TIME, &ti); static char str[13]; static unsigned long previous = 0; char* start; @@ -49,8 +51,10 @@ void loop(void) // draw_hex32(0, 17, count++); // add_thread(producer, 0, 4); //} + sys0_64(SYS_TIME, &tf); + draw_hex32(0, 13, tf-ti); wait_msec(30000); - add_thread(loop, 0, 3); + //add_thread(loop, 0, 3); } void loopt(void) -- cgit v1.2.1