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:
parent
499666f24a
commit
192a7559ff
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user