4.115
Last change
on this file since c499856 was
c499856,
checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47
|
Change all references of rtems.com to rtems.org.
|
-
Property mode set to
100644
|
File size:
993 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Console declarations |
---|
3 | * |
---|
4 | * |
---|
5 | * MPC5xx port sponsored by Defence Research and Development Canada - Suffield |
---|
6 | * Copyright (C) 2004, Real-Time Systems Inc. (querbach@realtime.bc.ca) |
---|
7 | * |
---|
8 | * The license and distribution terms for this file may be |
---|
9 | * found in the file LICENSE in this distribution or at |
---|
10 | * http://www.rtems.org/license/LICENSE. |
---|
11 | */ |
---|
12 | |
---|
13 | #ifndef _MPC5XX_CONSOLE_H |
---|
14 | #define _MPC5XX_CONSOLE_H |
---|
15 | |
---|
16 | #include <rtems/libio.h> |
---|
17 | #include <rtems/termiostypes.h> |
---|
18 | |
---|
19 | void m5xx_uart_initialize(int minor); |
---|
20 | |
---|
21 | /* Termios callbacks */ |
---|
22 | int m5xx_uart_firstOpen(int maj, int min, void *arg); |
---|
23 | int m5xx_uart_lastClose(int maj, int min, void *arg); |
---|
24 | int m5xx_uart_pollRead(int minor); |
---|
25 | ssize_t m5xx_uart_pollWrite(int minor, const char* buf, size_t len); |
---|
26 | ssize_t m5xx_uart_write (int minor, const char *buf, size_t len); |
---|
27 | int m5xx_uart_setAttributes(int, const struct termios* t); |
---|
28 | |
---|
29 | #define NUM_PORTS 2 /* number of serial ports */ |
---|
30 | |
---|
31 | #define SCI1_MINOR 0 |
---|
32 | #define SCI2_MINOR 1 |
---|
33 | |
---|
34 | #endif /* _MPC5XX_CONSOLE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.