OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [orpmon/] [drivers/] [uart.c] - Diff between revs 810 and 842

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 810 Rev 842
Line 71... Line 71...
        return c;
        return c;
}
}
 
 
char uart_testc(void)
char uart_testc(void)
{
{
        return ((REG8(UART_BASE + UART_LSR) & UART_LSR_DR) == UART_LSR_DR);
        if((REG8(UART_BASE + UART_LSR) & UART_LSR_DR) == UART_LSR_DR)
 
                return REG8(UART_BASE + UART_RX);
 
        else
 
                return 0;
}
}
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.