1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/telosb: Add getchar implementation

This commit is contained in:
Joakim Gebart 2015-07-07 00:31:44 +02:00
parent 499666f24a
commit 192a7559ff

View File

@ -72,6 +72,15 @@ int putchar(int c)
return c;
}
int getchar(void)
{
#ifdef MODULE_UART0
return uart0_readc();
#else
return U1RXBUF;
#endif
}
uint8_t uart_readByte(void)
{
return U1RXBUF;