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

Subversion Repositories potato

[/] [potato/] [trunk/] [benchmarks/] [sha256/] [uart.c] - Diff between revs 13 and 65

Show entire file | Details | Blame | View Log

Rev 13 Rev 65
Line 15... Line 15...
}
}
 
 
void uart_putc(volatile uint32_t * base, char c)
void uart_putc(volatile uint32_t * base, char c)
{
{
        // Wait until there is room in the transmit buffer:
        // Wait until there is room in the transmit buffer:
        while(base[UART_STATUS >> 2] & (1 << 3));
        while(base[UART_STATUS >> 2] & (1 << UART_STATUS_TXBUF_FULL));
        base[UART_TX >> 2] = c & 0x000000ff;
        base[UART_TX >> 2] = c & 0xff;
}
}
 
 
void uart_puth(volatile uint32_t * base, uint32_t n)
void uart_puth(volatile uint32_t * base, uint32_t n)
{
{
        static const char * hex_digits = "0123456789abcdef";
        static const char * hex_digits = "0123456789abcdef";

powered by: WebSVN 2.1.0

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