RTEMS: bsps/include/grlib/apbuart_termios.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
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
21extern "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
33extern const rtems_termios_device_handler apbuart_handler_interrupt;
34
35extern const rtems_termios_device_handler apbuart_handler_polled;
36
37#ifdef __cplusplus
38}
39#endif /* __cplusplus */
40
41#endif /* APBUART_TERMIOS_H */
grlib.h
Common GRLIB AMBA Core Register definitions.
rtems_vector_number
ISR_Vector_number rtems_vector_number
Control block type used to manage the vectors.
Definition: intr.h:47
apbuart_context
Definition: apbuart_termios.h:24
apbuart_regs
Definition: grlib.h:39
rtems_termios_device_context
Termios device context.
Definition: termiostypes.h:75
rtems_termios_device_handler
Termios device handler.
Definition: termiostypes.h:141
termiostypes.h