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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-newlib/] [newlib-1.17.0/] [libgloss/] [scarts_32/] [UART.h] - Blame information for rev 9

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 9 jlechner
/* UART device driver for SCARTS.
2
 * Copyright (C) 2010, 2011 Embedded Computing Systems Group,
3
 * Department of Computer Engineering, Vienna University of Technology.
4
 * Contributed by Martin Walter <mwalter@opencores.org>
5
 *
6
 * The authors hereby grant permission to use, copy, modify, distribute,
7
 * and license this software and its documentation for any purpose, provided
8
 * that existing copyright notices are retained in all copies and that this
9
 * notice is included verbatim in any distributions. No written agreement,
10
 * license, or royalty fee is required for any of the authorized uses.
11
 * Modifications to this software may be copyrighted by their authors
12
 * and need not follow the licensing terms described here, provided that
13
 * the new terms are clearly indicated on the first page of each file where
14
 * they apply.
15
 */
16
 
17
#ifndef __DEV_UART_H__
18
#define __DEV_UART_H__
19
 
20
#include <sys/types.h>
21
#include "UART_cfg.h"
22
 
23
/* Macros for error codes. */
24
#define EFRAME  1   /* frame error */
25
#define EPARITY 2   /* parity error */
26
#define EOVFLOW 3   /* overflow error */
27
 
28
extern int  UART_close     (int file);
29
extern void UART_init      (UART_Cfg cfg);
30
extern int  UART_open      (const char *name, int flags, int mode);
31
extern int  UART_read      (int file, char *ptr, int len);
32
extern int  UART_read_line (int file, char *ptr, int len);
33
extern int  UART_write     (int file, char *ptr, int len);
34
 
35
#endif

powered by: WebSVN 2.1.0

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