4.115
Last change
on this file since 8448a4d was
8448a4d,
checked in by Christian Mauderer <Christian.Mauderer@…>, on 07/01/14 at 13:09:49
|
bsps/sparc: Move APBUART printk support
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
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 | struct apbuart_regs *regs; |
---|
26 | unsigned int freq_hz; |
---|
27 | rtems_vector_number irq; |
---|
28 | volatile int sending; |
---|
29 | char *buf; |
---|
30 | }; |
---|
31 | |
---|
32 | const rtems_termios_device_handler apbuart_handler_interrupt; |
---|
33 | |
---|
34 | const rtems_termios_device_handler apbuart_handler_polled; |
---|
35 | |
---|
36 | /* |
---|
37 | * apbuart_outbyte_polled |
---|
38 | * |
---|
39 | * This routine transmits a character using polling. |
---|
40 | */ |
---|
41 | void apbuart_outbyte_polled( |
---|
42 | struct apbuart_regs *regs, |
---|
43 | unsigned char ch, |
---|
44 | int do_cr_on_newline, |
---|
45 | int wait_sent |
---|
46 | ); |
---|
47 | |
---|
48 | /* |
---|
49 | * apbuart_inbyte_nonblocking |
---|
50 | * |
---|
51 | * This routine polls for a character. |
---|
52 | */ |
---|
53 | int apbuart_inbyte_nonblocking(struct apbuart_regs *regs); |
---|
54 | |
---|
55 | #ifdef __cplusplus |
---|
56 | } |
---|
57 | #endif /* __cplusplus */ |
---|
58 | |
---|
59 | #endif /* APBUART_TERMIOS_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.