blob: 4b54252518a1089bdf9293eb295a3ca6f1ca8cf9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
/*
* COPYRIGHT (c) 1989-1998.
* On-Line Applications Research Corporation (OAR).
*
* Modified for LEON3 BSP.
* COPYRIGHT (c) 2004.
* Gaisler Research.
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.org/license/LICENSE.
*/
#ifndef APBUART_TERMIOS_H
#define APBUART_TERMIOS_H
#include <rtems/termiostypes.h>
#include <grlib.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
struct apbuart_context {
struct apbuart_regs *regs;
unsigned int freq_hz;
rtems_vector_number irq;
volatile int sending;
char *buf;
};
const rtems_termios_device_handler apbuart_handler_interrupt;
const rtems_termios_device_handler apbuart_handler_polled;
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* APBUART_TERMIOS_H */
|