Skip to content
Snippets Groups Projects
Commit f0dbd8cf authored by Ludwig Knüpfer's avatar Ludwig Knüpfer Committed by Oleg Hahm
Browse files

native board putchar implementation

parent 3d54e76b
No related branches found
No related tags found
No related merge requests found
/*
* 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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment