source: svn/trunk/newcon3bcm2_21bu/dta/src/serial.h @ 2

Last change on this file since 2 was 2, checked in by phkim, 11 years ago

1.phkim

  1. revision copy newcon3sk r27
  • Property svn:executable set to *
File size: 1.2 KB
Line 
1/*************************************************************************
2**
3**      Broadcom Corp. Confidential
4**      Copyright 1999, 2000 Broadcom Corp.  All Rights Reserved.
5**
6**  THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE
7**  AGREEMENT  BETWEEN THE USER AND BROADCOM.  YOU HAVE NO RIGHT TO USE OR
8**  EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT.
9**
10**      File:           serial.h
11**      Description:    polled uart io
12**      Created:        Jeff Fisher
13**      REVISION:
14**
15****************************************************************************/
16
17#ifndef __serial__
18#define __serial__
19
20#include "bstd.h"
21#include "bcmuart.h"
22#include "bos.h"
23
24#ifdef __cplusplus
25extern "C"
26{
27#endif
28
29typedef struct _urt_t {
30        unsigned long rxRead;
31        unsigned long rxWrite;
32        unsigned long rxBufferSize;
33        unsigned char *pRxFifo;
34        b_mutex_t lock;
35} urt_t;
36
37void serial_init(volatile UartChannel *uart,unsigned int baud);
38int serial_getc(volatile UartChannel *uart, bool block);
39void serial_putc(volatile UartChannel *uart, int c);
40
41void serial_start(volatile UartChannel *uart, bool start);
42
43#define CONSOLE_UART    UARTA
44
45#ifdef __cplusplus
46}
47#endif
48
49
50
51#endif /* __serial__ */
Note: See TracBrowser for help on using the repository browser.