boards/msb-430-common: Add getchar implementation

This commit is contained in:
Joakim Gebart 2015-07-07 00:32:00 +02:00
parent 192a7559ff
commit 5a99d5ce7d

View File

@ -28,6 +28,14 @@
#define UART1_TX TXBUF1
#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)
{