boards/wsn430-common: Add getchar implementation

This commit is contained in:
Joakim Gebart 2015-07-07 00:43:59 +02:00
parent 5a99d5ce7d
commit 1e63aa60a6

View File

@ -30,6 +30,15 @@ int putchar(int c)
return c; return c;
} }
int getchar(void)
{
#ifdef MODULE_UART0
return uart0_readc();
#else
return U0RXBUF;
#endif
}
void usart0irq(void); void usart0irq(void);
/** /**
* \brief the interrupt function * \brief the interrupt function