aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/uart.c
diff options
context:
space:
mode:
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;
}