OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [doc/] [html/] [ref/] [hal-diagnostic-support.html] - Blame information for rev 741

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 28 unneback
<!-- Copyright (C) 2003 Red Hat, Inc.                                -->
2
<!-- This material may be distributed only subject to the terms      -->
3
<!-- and conditions set forth in the Open Publication License, v1.0  -->
4
<!-- or later (the latest version is presently available at          -->
5
<!-- http://www.opencontent.org/openpub/).                           -->
6
<!-- Distribution of the work or derivative of the work in any       -->
7
<!-- standard (paper) book form is prohibited unless prior           -->
8
<!-- permission is obtained from the copyright holder.               -->
9
<HTML
10
><HEAD
11
><TITLE
12
>Diagnostic Support</TITLE
13
><meta name="MSSmartTagsPreventParsing" content="TRUE">
14
<META
15
NAME="GENERATOR"
16
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
17
"><LINK
18
REL="HOME"
19
TITLE="eCos Reference Manual"
20
HREF="ecos-ref.html"><LINK
21
REL="UP"
22
TITLE="HAL Interfaces"
23
HREF="hal-interfaces.html"><LINK
24
REL="PREVIOUS"
25
TITLE="Linker Scripts"
26
HREF="hal-linker-scripts.html"><LINK
27
REL="NEXT"
28
TITLE="SMP Support"
29
HREF="hal-smp-support.html"></HEAD
30
><BODY
31
CLASS="SECTION"
32
BGCOLOR="#FFFFFF"
33
TEXT="#000000"
34
LINK="#0000FF"
35
VLINK="#840084"
36
ALINK="#0000FF"
37
><DIV
38
CLASS="NAVHEADER"
39
><TABLE
40
SUMMARY="Header navigation table"
41
WIDTH="100%"
42
BORDER="0"
43
CELLPADDING="0"
44
CELLSPACING="0"
45
><TR
46
><TH
47
COLSPAN="3"
48
ALIGN="center"
49
>eCos Reference Manual</TH
50
></TR
51
><TR
52
><TD
53
WIDTH="10%"
54
ALIGN="left"
55
VALIGN="bottom"
56
><A
57
HREF="hal-linker-scripts.html"
58
ACCESSKEY="P"
59
>Prev</A
60
></TD
61
><TD
62
WIDTH="80%"
63
ALIGN="center"
64
VALIGN="bottom"
65
>Chapter 9. HAL Interfaces</TD
66
><TD
67
WIDTH="10%"
68
ALIGN="right"
69
VALIGN="bottom"
70
><A
71
HREF="hal-smp-support.html"
72
ACCESSKEY="N"
73
>Next</A
74
></TD
75
></TR
76
></TABLE
77
><HR
78
ALIGN="LEFT"
79
WIDTH="100%"></DIV
80
><DIV
81
CLASS="SECTION"
82
><H1
83
CLASS="SECTION"
84
><A
85
NAME="HAL-DIAGNOSTIC-SUPPORT">Diagnostic Support</H1
86
><P
87
>The HAL provides support for low level diagnostic IO. This is
88
particularly useful during early development as an aid to bringing up
89
a new platform. Usually this diagnostic channel is a UART or some
90
other serial IO device, but it may equally be a a memory
91
buffer, a simulator supported output channel, a ROM emulator virtual
92
UART, and LCD panel, a memory mapped video buffer or any other output
93
device.</P
94
><P
95
><TT
96
CLASS="FUNCTION"
97
>HAL_DIAG_INIT()</TT
98
> performs any initialization
99
required on the device being used to generate diagnostic output. This
100
may include, for a UART, setting baud rate, and stop, parity and
101
character bits. For other devices it may include initializing a
102
controller or establishing contact with a remote device.</P
103
><P
104
><TT
105
CLASS="FUNCTION"
106
>HAL_DIAG_WRITE_CHAR(c)</TT
107
> writes
108
the character supplied to the diagnostic output device.</P
109
><P
110
><TT
111
CLASS="FUNCTION"
112
>HAL_DIAG_READ_CHAR(c)</TT
113
> reads a character from the
114
diagnostic device into the supplied variable. This is not supported
115
for all diagnostic devices.</P
116
><P
117
>These macros are defined in the header file
118
<TT
119
CLASS="FILENAME"
120
>cyg/hal/hal_diag.h</TT
121
>. This file is usually supplied
122
by the variant or platform HAL, depending on where the IO device being
123
used is located. For example for on-chip UARTs it would be in the
124
variant HAL, but for a board-level LCD panel it would be in the
125
platform HAL.</P
126
></DIV
127
><DIV
128
CLASS="NAVFOOTER"
129
><HR
130
ALIGN="LEFT"
131
WIDTH="100%"><TABLE
132
SUMMARY="Footer navigation table"
133
WIDTH="100%"
134
BORDER="0"
135
CELLPADDING="0"
136
CELLSPACING="0"
137
><TR
138
><TD
139
WIDTH="33%"
140
ALIGN="left"
141
VALIGN="top"
142
><A
143
HREF="hal-linker-scripts.html"
144
ACCESSKEY="P"
145
>Prev</A
146
></TD
147
><TD
148
WIDTH="34%"
149
ALIGN="center"
150
VALIGN="top"
151
><A
152
HREF="ecos-ref.html"
153
ACCESSKEY="H"
154
>Home</A
155
></TD
156
><TD
157
WIDTH="33%"
158
ALIGN="right"
159
VALIGN="top"
160
><A
161
HREF="hal-smp-support.html"
162
ACCESSKEY="N"
163
>Next</A
164
></TD
165
></TR
166
><TR
167
><TD
168
WIDTH="33%"
169
ALIGN="left"
170
VALIGN="top"
171
>Linker Scripts</TD
172
><TD
173
WIDTH="34%"
174
ALIGN="center"
175
VALIGN="top"
176
><A
177
HREF="hal-interfaces.html"
178
ACCESSKEY="U"
179
>Up</A
180
></TD
181
><TD
182
WIDTH="33%"
183
ALIGN="right"
184
VALIGN="top"
185
>SMP Support</TD
186
></TR
187
></TABLE
188
></DIV
189
></BODY
190
></HTML
191
>

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.