/* Read a single byte from the rs485 port. Returns 1 on success, 0 otherwise. When the function is succesfull, the character read is written into its argument c.  */
int rs485_getc(void)
/* Read a single byte from the rs485 port. Returns 1 on success, 0 otherwise. When the function is succesfull, the character read is written into its argument c.  */
int rs485_getc(void)
{
	struct s3c24x0_uart * const uart = s3c24x0_get_base_uart(UART_NR);
	while (!(uart->UTRSTAT & 0x1));
	return uart->URXH & 0xff;
}