basic heap implementation
[cortex-from-scratch] / lib / stdio.c
index 6b0f2a2..0149eba 100644 (file)
@@ -18,7 +18,9 @@
 
 #include <lib/stdio.h>
 #include <lib/string.h>
+
 #include <drivers/uart.h>
+#include <drivers/st7735s.h>
 
 #define SERIAL 1
 #define TFT 0
@@ -42,6 +44,9 @@ void cputchar(char c) {
        if (SERIAL) {
                uart_putc(c);
        }
+       if (TFT) {
+               tft_putc(0xFFFF, 0x0000, c);
+       }
 
 }