aboutsummaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-02-04 00:05:50 -0700
committerChristian Cunningham <cc@localhost>2022-02-04 00:05:50 -0700
commitcfebe5feb55777bb377ff310b8cde03f3e0c25ff (patch)
tree7877e930627b5665431ed2104fb79e20a8ef1159 /src/cpu
parentf4f23afb28268570d0da7f70bda6d2bcf760f839 (diff)
Access Uart through rotating buffer
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/irq.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cpu/irq.c b/src/cpu/irq.c
index 2197067..15603b9 100644
--- a/src/cpu/irq.c
+++ b/src/cpu/irq.c
@@ -84,6 +84,9 @@ unsigned long c_fiq_handler(void)
if (counter % 0x6000 == 0) {
counter = 0;
}
+ if (counter % 0x8 == 0) {
+ add_thread(uart_flush, 0, 5);
+ }
if (counter % 0x30 == 0) {
return 1;
}