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

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [src/] [lib/] [putc.c] - Rev 2

Compare with Previous | Blame | View Log

/*
 * Generic putc implementation that ties with platform-specific uart driver.
 *
 * Copyright (C) 2007 Bahadir Balban
 */
#include INC_PLAT(uart.h)
 
void putc(char c)
{
	if (c == '\n')
		uart_tx_char(PLATFORM_CONSOLE_VBASE, '\r');
	uart_tx_char(PLATFORM_CONSOLE_VBASE, c);
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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