diff options
author | Christian Cunningham <cc@localhost> | 2022-02-19 13:40:17 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-02-19 13:40:17 -0700 |
commit | 9de5e07bc3920d4b03903eb5b78847973075059b (patch) | |
tree | cd0c23664beccb4c53f532650d94b722dec5f453 /src/drivers | |
parent | 5419a7174ef491427797196903c35ce921129f27 (diff) |
Added comments and cleanup
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/uart.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/drivers/uart.c b/src/drivers/uart.c index 41ce10e..d6bb92b 100644 --- a/src/drivers/uart.c +++ b/src/drivers/uart.c @@ -5,7 +5,7 @@ #include <sys/schedule.h> #include <symbols.h> -#define UART_BUFFER_SIZE 0x100 +#define UART_BUFFER_SIZE 0x400 struct UartBuffer { char buffer[UART_BUFFER_SIZE]; unsigned long roffset; @@ -52,7 +52,8 @@ void* uart_print(char* s) ubuffer.woffset %= UART_BUFFER_SIZE; ptr += 1; } - add_thread(uart_flush, 0, 5); + // Low priority flush run whenever + add_thread(uart_flush, 0, PRIORITIES-1); return 0; } |