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

Subversion Repositories minsoc

[/] [minsoc/] [trunk/] [sw/] [drivers/] [uart.c] - Diff between revs 64 and 80

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

Rev 64 Rev 80
Line 1... Line 1...
#include "../../backend/board.h"
#include <board.h>
#include "../support/support.h"
#include <support.h>
#include "uart.h"
#include "uart.h"
 
 
#define BOTH_EMPTY (UART_LSR_TEMT | UART_LSR_THRE)
#define BOTH_EMPTY (UART_LSR_TEMT | UART_LSR_THRE)
 
 
#define WAIT_FOR_XMITR \
#define WAIT_FOR_XMITR \
Line 66... Line 66...
 
 
 
 
 
 
char uart_getc()
char uart_getc()
{
{
        unsigned char lsr;
 
        char c;
        char c;
 
 
        //        WAIT_FOR_CHAR;
 
        c = REG8(UART_BASE + UART_RX);
        c = REG8(UART_BASE + UART_RX);
        return c;
        return c;
}
}
 
 
 
 

powered by: WebSVN 2.1.0

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