RTEMS
5.0.0
Main Page
Related Pages
Modules
+
Data Structures
Data Structures
Data Structure Index
+
Data Fields
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Variables
_
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
v
w
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
o
p
q
r
s
t
u
v
w
x
+
Enumerations
a
b
c
e
h
i
l
m
o
p
q
r
s
t
w
+
Enumerator
a
c
d
i
l
m
p
r
s
t
w
+
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
bsps
powerpc
include
mpc5xx
console.h
1
/*
2
* Console declarations
3
*
4
*
5
* MPC5xx port sponsored by Defence Research and Development Canada - Suffield
6
* Copyright (C) 2004, Real-Time Systems Inc. (querbach@realtime.bc.ca)
7
*
8
* The license and distribution terms for this file may be
9
* found in the file LICENSE in this distribution or at
10
* http://www.rtems.org/license/LICENSE.
11
*/
12
13
#ifndef _MPC5XX_CONSOLE_H
14
#define _MPC5XX_CONSOLE_H
15
16
#include <
rtems/libio.h
>
17
#include <
rtems/termiostypes.h
>
18
19
void
m5xx_uart_initialize(
int
minor);
20
21
/* Termios callbacks */
22
int
m5xx_uart_firstOpen(
int
maj,
int
min,
void
*arg);
23
int
m5xx_uart_lastClose(
int
maj,
int
min,
void
*arg);
24
int
m5xx_uart_pollRead(
int
minor);
25
ssize_t m5xx_uart_pollWrite(
int
minor,
const
char
* buf,
size_t
len);
26
ssize_t m5xx_uart_write (
int
minor,
const
char
*buf,
size_t
len);
27
int
m5xx_uart_setAttributes(
int
,
const
struct
termios* t);
28
29
#define NUM_PORTS 2
/* number of serial ports */
30
31
#define SCI1_MINOR 0
32
#define SCI2_MINOR 1
33
34
#endif
/* _MPC5XX_CONSOLE_H */
libio.h
Basic IO API.
termiostypes.h
Generated by
1.8.13