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

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [conts/] [libdev/] [include/] [libdev/] [uart.h] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
/*
2
 * Generic uart API
3
 *
4
 * Copyright (C) 2010 B Labs Ltd.
5
 *
6
 * Author: Bahadir Balban
7
 */
8
#ifndef __LIBDEV_UART_H__
9
#define __LIBDEV_UART_H__
10
 
11
void uart_tx_char(unsigned long uart_base, char c);
12
char uart_rx_char(unsigned long uart_base);
13
void uart_set_baudrate(unsigned long uart_base, unsigned int val);
14
void uart_init(unsigned long base);
15
 
16
/*
17
 * Base of primary uart used for printf
18
 */
19
extern unsigned long uart_print_base;
20
 
21
#endif /* __LIBDEV_UART_H__  */

powered by: WebSVN 2.1.0

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