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

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [src/] [lib/] [putc.c] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
/*
2
 * Generic putc implementation that ties with platform-specific uart driver.
3
 *
4
 * Copyright (C) 2007 Bahadir Balban
5
 */
6
#include INC_PLAT(uart.h)
7
 
8
void putc(char c)
9
{
10
        if (c == '\n')
11
                uart_tx_char(PLATFORM_CONSOLE_VBASE, '\r');
12
        uart_tx_char(PLATFORM_CONSOLE_VBASE, c);
13
}

powered by: WebSVN 2.1.0

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