From f0dbd8cf751ca393fca2116ced4b5fc590ea6880 Mon Sep 17 00:00:00 2001 From: Ludwig Ortmann <ludwig.ortmann@fu-berlin.de> Date: Wed, 15 May 2013 16:04:48 +0200 Subject: [PATCH] native board putchar implementation --- native/native-uart0.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/native/native-uart0.c b/native/native-uart0.c index c73b5ee6ea..e13447bb0e 100644 --- a/native/native-uart0.c +++ b/native/native-uart0.c @@ -1,3 +1,8 @@ +/* + * TODO: + * make stdin/stdout customizable. + */ + #include <err.h> #include <stdio.h> #include <unistd.h> @@ -42,3 +47,8 @@ void _native_init_uart0() FD_SET(0, &_native_uart_rfds); puts("RIOT native uart0 initialized."); } + +int putchar(int c) { + write(1, &c, 1); + return 0; +} -- GitLab