4.104.114.84.95
Last change
on this file since 501d312 was
501d312,
checked in by Joel Sherrill <joel.sherrill@…>, on 07/06/00 at 20:07:34
|
Added baseline for h8 simulator BSP to support the simulator in gdb 5.0
|
-
Property mode set to
100644
|
File size:
971 bytes
|
Line | |
---|
1 | /* |
---|
2 | * This file contains the hardware specific portions of the TTY driver |
---|
3 | * for the serial ports on the erc32. |
---|
4 | * |
---|
5 | * COPYRIGHT (c) 1989-1997. |
---|
6 | * On-Line Applications Research Corporation (OAR). |
---|
7 | * Copyright assigned to U.S. Government, 1994. |
---|
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.OARcorp.com/rtems/license.html. |
---|
12 | * |
---|
13 | * $Id$ |
---|
14 | */ |
---|
15 | |
---|
16 | #include <bsp.h> |
---|
17 | #include <rtems/libio.h> |
---|
18 | #include <stdlib.h> |
---|
19 | #include <assert.h> |
---|
20 | |
---|
21 | /* external prototypes for monitor interface routines */ |
---|
22 | |
---|
23 | /* |
---|
24 | * console_outbyte_polled |
---|
25 | * |
---|
26 | * This routine transmits a character using polling. |
---|
27 | */ |
---|
28 | |
---|
29 | void console_outbyte_polled( |
---|
30 | int port, |
---|
31 | char ch |
---|
32 | ) |
---|
33 | { |
---|
34 | asm volatile( "mov.b #0,r1l ; mov.b %0l,r2l ; jsr @@0xc4" |
---|
35 | : : "r" (ch) : "r1", "r2"); |
---|
36 | } |
---|
37 | |
---|
38 | /* |
---|
39 | * console_inbyte_nonblocking |
---|
40 | * |
---|
41 | * This routine polls for a character. |
---|
42 | */ |
---|
43 | |
---|
44 | int console_inbyte_nonblocking( |
---|
45 | int port |
---|
46 | ) |
---|
47 | { |
---|
48 | return -1; |
---|
49 | } |
---|
50 | |
---|
Note: See
TracBrowser
for help on using the repository browser.