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] - Diff between revs 28 and 174

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 28 Rev 174
<!-- Copyright (C) 2003 Red Hat, Inc.                                -->
<!-- Copyright (C) 2003 Red Hat, Inc.                                -->
<!-- This material may be distributed only subject to the terms      -->
<!-- This material may be distributed only subject to the terms      -->
<!-- and conditions set forth in the Open Publication License, v1.0  -->
<!-- and conditions set forth in the Open Publication License, v1.0  -->
<!-- or later (the latest version is presently available at          -->
<!-- or later (the latest version is presently available at          -->
<!-- http://www.opencontent.org/openpub/).                           -->
<!-- http://www.opencontent.org/openpub/).                           -->
<!-- Distribution of the work or derivative of the work in any       -->
<!-- Distribution of the work or derivative of the work in any       -->
<!-- standard (paper) book form is prohibited unless prior           -->
<!-- standard (paper) book form is prohibited unless prior           -->
<!-- permission is obtained from the copyright holder.               -->
<!-- permission is obtained from the copyright holder.               -->
<HTML
<HTML
><HEAD
><HEAD
><TITLE
><TITLE
>Diagnostic Support</TITLE
>Diagnostic Support</TITLE
><meta name="MSSmartTagsPreventParsing" content="TRUE">
><meta name="MSSmartTagsPreventParsing" content="TRUE">
<META
<META
NAME="GENERATOR"
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
"><LINK
"><LINK
REL="HOME"
REL="HOME"
TITLE="eCos Reference Manual"
TITLE="eCos Reference Manual"
HREF="ecos-ref.html"><LINK
HREF="ecos-ref.html"><LINK
REL="UP"
REL="UP"
TITLE="HAL Interfaces"
TITLE="HAL Interfaces"
HREF="hal-interfaces.html"><LINK
HREF="hal-interfaces.html"><LINK
REL="PREVIOUS"
REL="PREVIOUS"
TITLE="Linker Scripts"
TITLE="Linker Scripts"
HREF="hal-linker-scripts.html"><LINK
HREF="hal-linker-scripts.html"><LINK
REL="NEXT"
REL="NEXT"
TITLE="SMP Support"
TITLE="SMP Support"
HREF="hal-smp-support.html"></HEAD
HREF="hal-smp-support.html"></HEAD
><BODY
><BODY
CLASS="SECTION"
CLASS="SECTION"
BGCOLOR="#FFFFFF"
BGCOLOR="#FFFFFF"
TEXT="#000000"
TEXT="#000000"
LINK="#0000FF"
LINK="#0000FF"
VLINK="#840084"
VLINK="#840084"
ALINK="#0000FF"
ALINK="#0000FF"
><DIV
><DIV
CLASS="NAVHEADER"
CLASS="NAVHEADER"
><TABLE
><TABLE
SUMMARY="Header navigation table"
SUMMARY="Header navigation table"
WIDTH="100%"
WIDTH="100%"
BORDER="0"
BORDER="0"
CELLPADDING="0"
CELLPADDING="0"
CELLSPACING="0"
CELLSPACING="0"
><TR
><TR
><TH
><TH
COLSPAN="3"
COLSPAN="3"
ALIGN="center"
ALIGN="center"
>eCos Reference Manual</TH
>eCos Reference Manual</TH
></TR
></TR
><TR
><TR
><TD
><TD
WIDTH="10%"
WIDTH="10%"
ALIGN="left"
ALIGN="left"
VALIGN="bottom"
VALIGN="bottom"
><A
><A
HREF="hal-linker-scripts.html"
HREF="hal-linker-scripts.html"
ACCESSKEY="P"
ACCESSKEY="P"
>Prev</A
>Prev</A
></TD
></TD
><TD
><TD
WIDTH="80%"
WIDTH="80%"
ALIGN="center"
ALIGN="center"
VALIGN="bottom"
VALIGN="bottom"
>Chapter 9. HAL Interfaces</TD
>Chapter 9. HAL Interfaces</TD
><TD
><TD
WIDTH="10%"
WIDTH="10%"
ALIGN="right"
ALIGN="right"
VALIGN="bottom"
VALIGN="bottom"
><A
><A
HREF="hal-smp-support.html"
HREF="hal-smp-support.html"
ACCESSKEY="N"
ACCESSKEY="N"
>Next</A
>Next</A
></TD
></TD
></TR
></TR
></TABLE
></TABLE
><HR
><HR
ALIGN="LEFT"
ALIGN="LEFT"
WIDTH="100%"></DIV
WIDTH="100%"></DIV
><DIV
><DIV
CLASS="SECTION"
CLASS="SECTION"
><H1
><H1
CLASS="SECTION"
CLASS="SECTION"
><A
><A
NAME="HAL-DIAGNOSTIC-SUPPORT">Diagnostic Support</H1
NAME="HAL-DIAGNOSTIC-SUPPORT">Diagnostic Support</H1
><P
><P
>The HAL provides support for low level diagnostic IO. This is
>The HAL provides support for low level diagnostic IO. This is
particularly useful during early development as an aid to bringing up
particularly useful during early development as an aid to bringing up
a new platform. Usually this diagnostic channel is a UART or some
a new platform. Usually this diagnostic channel is a UART or some
other serial IO device, but it may equally be a a memory
other serial IO device, but it may equally be a a memory
buffer, a simulator supported output channel, a ROM emulator virtual
buffer, a simulator supported output channel, a ROM emulator virtual
UART, and LCD panel, a memory mapped video buffer or any other output
UART, and LCD panel, a memory mapped video buffer or any other output
device.</P
device.</P
><P
><P
><TT
><TT
CLASS="FUNCTION"
CLASS="FUNCTION"
>HAL_DIAG_INIT()</TT
>HAL_DIAG_INIT()</TT
> performs any initialization
> performs any initialization
required on the device being used to generate diagnostic output. This
required on the device being used to generate diagnostic output. This
may include, for a UART, setting baud rate, and stop, parity and
may include, for a UART, setting baud rate, and stop, parity and
character bits. For other devices it may include initializing a
character bits. For other devices it may include initializing a
controller or establishing contact with a remote device.</P
controller or establishing contact with a remote device.</P
><P
><P
><TT
><TT
CLASS="FUNCTION"
CLASS="FUNCTION"
>HAL_DIAG_WRITE_CHAR(c)</TT
>HAL_DIAG_WRITE_CHAR(c)</TT
> writes
> writes
the character supplied to the diagnostic output device.</P
the character supplied to the diagnostic output device.</P
><P
><P
><TT
><TT
CLASS="FUNCTION"
CLASS="FUNCTION"
>HAL_DIAG_READ_CHAR(c)</TT
>HAL_DIAG_READ_CHAR(c)</TT
> reads a character from the
> reads a character from the
diagnostic device into the supplied variable. This is not supported
diagnostic device into the supplied variable. This is not supported
for all diagnostic devices.</P
for all diagnostic devices.</P
><P
><P
>These macros are defined in the header file
>These macros are defined in the header file
<TT
<TT
CLASS="FILENAME"
CLASS="FILENAME"
>cyg/hal/hal_diag.h</TT
>cyg/hal/hal_diag.h</TT
>. This file is usually supplied
>. This file is usually supplied
by the variant or platform HAL, depending on where the IO device being
by the variant or platform HAL, depending on where the IO device being
used is located. For example for on-chip UARTs it would be in the
used is located. For example for on-chip UARTs it would be in the
variant HAL, but for a board-level LCD panel it would be in the
variant HAL, but for a board-level LCD panel it would be in the
platform HAL.</P
platform HAL.</P
></DIV
></DIV
><DIV
><DIV
CLASS="NAVFOOTER"
CLASS="NAVFOOTER"
><HR
><HR
ALIGN="LEFT"
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
SUMMARY="Footer navigation table"
WIDTH="100%"
WIDTH="100%"
BORDER="0"
BORDER="0"
CELLPADDING="0"
CELLPADDING="0"
CELLSPACING="0"
CELLSPACING="0"
><TR
><TR
><TD
><TD
WIDTH="33%"
WIDTH="33%"
ALIGN="left"
ALIGN="left"
VALIGN="top"
VALIGN="top"
><A
><A
HREF="hal-linker-scripts.html"
HREF="hal-linker-scripts.html"
ACCESSKEY="P"
ACCESSKEY="P"
>Prev</A
>Prev</A
></TD
></TD
><TD
><TD
WIDTH="34%"
WIDTH="34%"
ALIGN="center"
ALIGN="center"
VALIGN="top"
VALIGN="top"
><A
><A
HREF="ecos-ref.html"
HREF="ecos-ref.html"
ACCESSKEY="H"
ACCESSKEY="H"
>Home</A
>Home</A
></TD
></TD
><TD
><TD
WIDTH="33%"
WIDTH="33%"
ALIGN="right"
ALIGN="right"
VALIGN="top"
VALIGN="top"
><A
><A
HREF="hal-smp-support.html"
HREF="hal-smp-support.html"
ACCESSKEY="N"
ACCESSKEY="N"
>Next</A
>Next</A
></TD
></TD
></TR
></TR
><TR
><TR
><TD
><TD
WIDTH="33%"
WIDTH="33%"
ALIGN="left"
ALIGN="left"
VALIGN="top"
VALIGN="top"
>Linker Scripts</TD
>Linker Scripts</TD
><TD
><TD
WIDTH="34%"
WIDTH="34%"
ALIGN="center"
ALIGN="center"
VALIGN="top"
VALIGN="top"
><A
><A
HREF="hal-interfaces.html"
HREF="hal-interfaces.html"
ACCESSKEY="U"
ACCESSKEY="U"
>Up</A
>Up</A
></TD
></TD
><TD
><TD
WIDTH="33%"
WIDTH="33%"
ALIGN="right"
ALIGN="right"
VALIGN="top"
VALIGN="top"
>SMP Support</TD
>SMP Support</TD
></TR
></TR
></TABLE
></TABLE
></DIV
></DIV
></BODY
></BODY
></HTML
></HTML
 
 

powered by: WebSVN 2.1.0

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