st7735s: bug fix uninitialized value
[cortex-from-scratch] / lib / stdio.c
index ac26165..6b0f2a2 100644 (file)
@@ -1,3 +1,17 @@
+/* (CC-BY-NC-SA) ROBIN KRENS - ROBIN @ ROBINKRENS.NL
+ * 
+ * $LOG$
+ * 2019/7/23 - ROBIN KRENS     
+ * Initial version 
+ * 
+ * $DESCRIPTION$
+ * The 'classic' putc and getchar functions. Should not be used directly
+ * use the tinyprintf library instead
+ *
+ * Can be extended for multiple interfaces (serial, tft or oled screens)
+ *
+ */
+
 #include <stdbool.h>
 #include <stddef.h>
 #include <stdint.h>
@@ -31,6 +45,12 @@ void cputchar(char c) {
 
 }
 
+void putc(void *p, char c) {
+
+       cputchar(c);
+
+}
+
 void cputs(unsigned char *str) {
      
      int i;