RTEMS 7.0-rc1
Loading...
Searching...
No Matches
ffuart.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0+-with-RTEMS-exception */
2
9/*
10 * Copyright (c) 2009 Yang Xi <hiyangxi@gmail.com>
11 *
12 * The license and distribution terms for this file may be
13 * found in the file LICENSE in this distribution or at
14 * http://www.rtems.org/license/LICENSE.
15 */
16
17#ifndef __FFUART_H__
18#define __FFUART_H__
19
20typedef struct {
21 /*
22 *Receive buffer(DLAB=0).Transmit buffer(DLAB=0).
23 *Divisor Latch Low(DLAB=1)
24 */
25 volatile unsigned int rbr;
26 /*Interrupt enable(DLAB=0). Divisor Latch High(DLAB=1)*/
27 volatile unsigned int ier;
28 /*Interrupt identification.FIFO control*/
29 volatile unsigned int iir;
30 /*Line Control*/
31 volatile unsigned int lcr;
32 /*Modem control*/
33 volatile unsigned int mcr;
34 /*Line Status*/
35 volatile unsigned int lsr;
36 /*Modem status*/
37 volatile unsigned int msr;
38 /*Scratch Pad*/
39 volatile unsigned int spr;
40 /*Infrared Selection*/
41 volatile unsigned int isr;
43
44
45#define EIGHT_BITS_NOPARITY_1STOPBIT 0x3
46#define DLAB 0x80
47
48
49/*Divisor = frequency_uart/(16 * BaudRate*)*/
50#define FREQUENCY_UART (14745600)
51
52#define SEND_EMPTY 0x20
53#define FULL_RECEIVE 0x01
54
55#endif
56
Definition: ffuart.h:20