boards/wsn430-common: Add getchar implementation
This commit is contained in:
parent
5a99d5ce7d
commit
1e63aa60a6
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user