RTEMS
5.1
bsps
include
grlib
apbuart_termios.h
1
/*
2
* COPYRIGHT (c) 1989-1998.
3
* On-Line Applications Research Corporation (OAR).
4
*
5
* Modified for LEON3 BSP.
6
* COPYRIGHT (c) 2004.
7
* Gaisler Research.
8
*
9
* The license and distribution terms for this file may be
10
* found in the file LICENSE in this distribution or at
11
* http://www.rtems.org/license/LICENSE.
12
*/
13
14
#ifndef APBUART_TERMIOS_H
15
#define APBUART_TERMIOS_H
16
17
#include <
rtems/termiostypes.h
>
18
#include "
grlib.h
"
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
/* __cplusplus */
23
24
struct
apbuart_context
{
25
rtems_termios_device_context
base;
26
struct
apbuart_regs
*regs;
27
unsigned
int
freq_hz;
28
rtems_vector_number
irq;
29
volatile
int
sending;
30
char
*buf;
31
};
32
33
extern
const
rtems_termios_device_handler
apbuart_handler_interrupt;
34
35
extern
const
rtems_termios_device_handler
apbuart_handler_polled;
36
37
#ifdef __cplusplus
38
}
39
#endif
/* __cplusplus */
40
41
#endif
/* APBUART_TERMIOS_H */
rtems_termios_device_context
Termios device context.
Definition:
termiostypes.h:75
termiostypes.h
rtems_vector_number
ISR_Vector_number rtems_vector_number
Control block type used to manage the vectors.
Definition:
intr.h:47
apbuart_regs
Definition:
grlib.h:39
apbuart_context
Definition:
apbuart_termios.h:24
grlib.h
Common GRLIB AMBA Core Register definitions.
rtems_termios_device_handler
Termios device handler.
Definition:
termiostypes.h:141
Generated by
1.8.15