RTEMS
6.3
Toggle main menu visibility
Loading...
Searching...
No Matches
bsps
sh
gensh2
include
sh
sci.h
1
/*
2
* Driver for the sh2 704x on-chip serial devices (sci)
3
*
4
* Authors: Ralf Corsepius (corsepiu@faw.uni-ulm.de) and
5
* Bernd Becker (becker@faw.uni-ulm.de)
6
*
7
* COPYRIGHT (c) 1997-1998, FAW Ulm, Germany
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
*
13
*
14
* COPYRIGHT (c) 1998.
15
* On-Line Applications Research Corporation (OAR).
16
*
17
* The license and distribution terms for this file may be
18
* found in the file LICENSE in this distribution or at
19
* http://www.rtems.org/license/LICENSE.
20
*/
21
22
#ifndef _sh_sci_h
23
#define _sh_sci_h
24
25
#include <
rtems/libio.h
>
26
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
31
/*
32
* Devices are set to 9600 bps, 8 databits, 1 stopbit, no
33
* parity and asynchronous mode by default.
34
*
35
* NOTE:
36
* The onboard serial devices of the SH do not support hardware
37
* handshake.
38
*/
39
40
#define DEVSCI_DRIVER_TABLE_ENTRY \
41
{ sh_sci_initialize, sh_sci_open, sh_sci_close, sh_sci_read, \
42
sh_sci_write, sh_sci_control }
43
44
extern
rtems_device_driver
sh_sci_initialize(
45
rtems_device_major_number
,
46
rtems_device_minor_number
,
47
void
*
48
);
49
50
extern
rtems_device_driver
sh_sci_open(
51
rtems_device_major_number
,
52
rtems_device_minor_number
,
53
void
*
54
);
55
56
extern
rtems_device_driver
sh_sci_close(
57
rtems_device_major_number
,
58
rtems_device_minor_number
,
59
void
*
60
);
61
62
extern
rtems_device_driver
sh_sci_read(
63
rtems_device_major_number
,
64
rtems_device_minor_number
,
65
void
*
66
);
67
68
extern
rtems_device_driver
sh_sci_write(
69
rtems_device_major_number
,
70
rtems_device_minor_number
,
71
void
*
72
);
73
74
extern
rtems_device_driver
sh_sci_control(
75
rtems_device_major_number
,
76
rtems_device_minor_number
,
77
void
*
78
);
79
80
extern
const
rtems_termios_callbacks
* sh_sci_get_termios_handlers(
81
bool
poll
82
);
83
84
85
#ifdef __cplusplus
86
}
87
#endif
88
89
#endif
rtems_device_driver
rtems_status_code rtems_device_driver
This type shall be used in device driver entry declarations and definitions.
Definition
io.h:90
rtems_device_major_number
uint32_t rtems_device_major_number
This integer type represents the major number of devices.
Definition
io.h:103
rtems_device_minor_number
uint32_t rtems_device_minor_number
This integer type represents the minor number of devices.
Definition
io.h:115
libio.h
Basic IO API.
rtems_termios_callbacks
Definition
libio.h:1986
Generated by
1.18.0