boards/msb-430-common: Add getchar implementation
This commit is contained in:
parent
192a7559ff
commit
5a99d5ce7d
@ -28,6 +28,14 @@
|
|||||||
#define UART1_TX TXBUF1
|
#define UART1_TX TXBUF1
|
||||||
#define UART1_WAIT_TXDONE() while( (UTCTL1 & TXEPT) == 0 ) { _NOP(); }
|
#define UART1_WAIT_TXDONE() while( (UTCTL1 & TXEPT) == 0 ) { _NOP(); }
|
||||||
|
|
||||||
|
int getchar(void)
|
||||||
|
{
|
||||||
|
#ifdef MODULE_UART0
|
||||||
|
return uart0_readc();
|
||||||
|
#else
|
||||||
|
return U1RXBUF;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
int putchar(int c)
|
int putchar(int c)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user