aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/uart.c
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-02-04 16:33:19 -0700
committerChristian Cunningham <cc@localhost>2022-02-04 16:33:19 -0700
commit6e7f93d6a09865937dde1124a6c3f36eebcd9d82 (patch)
tree085d3b687b4c6175592a4d3cf9b0afdf75503837 /src/drivers/uart.c
parentaaf7667a36a0268de87f1913fd9a87e1cbf7da92 (diff)
Move tests to own file
Diffstat (limited to 'src/drivers/uart.c')
-rw-r--r--src/drivers/uart.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/uart.c b/src/drivers/uart.c
index c5514ce..cc9c357 100644
--- a/src/drivers/uart.c
+++ b/src/drivers/uart.c
@@ -1,4 +1,5 @@
#include <drivers/uart.h>
+#include <sys/schedule.h>
#define UART_BUFFER_SIZE 0x100
struct UartBuffer {
@@ -27,6 +28,7 @@ void* uart_print(char* s)
ubuffer.woffset %= UART_BUFFER_SIZE;
ptr += 1;
}
+ add_thread(uart_flush, 0, 5);
return 0;
}