From ffb2c4adfb8e65e355b39abd39d994eebc649c98 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Fri, 3 Jan 2020 04:53:01 +0100 Subject: add (not yet fully working - it can only send through uart now) interrupt-driven uart together with "scheduler" --- io.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'io.c') diff --git a/io.c b/io.c index f35fda9..bf9e0e3 100644 --- a/io.c +++ b/io.c @@ -17,6 +17,13 @@ void prints(char string[]) putchar(string[i]); } +void error(char string[]) +{ + prints("ERROR! "); + puts(string); + while (1); +} + void printdec(uint32_t number) { char buf[11]; -- cgit v1.2.3