mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-28 16:01:18 +01:00
native board putchar implementation
This commit is contained in:
parent
3d54e76b90
commit
f0dbd8cf75
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user