altos: Switch to newlib-nano for libc on arm
[fw/altos] / src / kernel / ao.h
index 0a3981d743b323c229ef75323867e42a2fca0369..204eaae75a3baead7637c772370bf632ad22a963 100644 (file)
 #include <ao_pins.h>
 #include <ao_arch.h>
 
+/* replace stdio macros with direct calls to our functions */
+#undef putchar
+#undef getchar
+#define putchar(c)     ao_putchar(c)
+#define getchar                ao_getchar
+
+extern int ao_putchar(char c);
+extern char ao_getchar(void);
+
 #define TRUE 1
 #define FALSE 0