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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [doc/] [html/] [ref/] [compat-uitron-interrupt-management-functions.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
>Interrupt management functions</TITLE
>Interrupt management functions</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="µITRON API"
TITLE="µITRON API"
HREF="compat-uitron-microitron-api.html"><LINK
HREF="compat-uitron-microitron-api.html"><LINK
REL="PREVIOUS"
REL="PREVIOUS"
TITLE="Extended Synchronization and Communication Functions"
TITLE="Extended Synchronization and Communication Functions"
HREF="compat-uitron-extended-sync-comm-functions.html"><LINK
HREF="compat-uitron-extended-sync-comm-functions.html"><LINK
REL="NEXT"
REL="NEXT"
TITLE="   Memory pool Management Functions"
TITLE="   Memory pool Management Functions"
HREF="compat-uitron-memory-pool-mgmt-functions.html"></HEAD
HREF="compat-uitron-memory-pool-mgmt-functions.html"></HEAD
><BODY
><BODY
CLASS="SECT1"
CLASS="SECT1"
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="compat-uitron-extended-sync-comm-functions.html"
HREF="compat-uitron-extended-sync-comm-functions.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 32. &micro;ITRON API</TD
>Chapter 32. &micro;ITRON API</TD
><TD
><TD
WIDTH="10%"
WIDTH="10%"
ALIGN="right"
ALIGN="right"
VALIGN="bottom"
VALIGN="bottom"
><A
><A
HREF="compat-uitron-memory-pool-mgmt-functions.html"
HREF="compat-uitron-memory-pool-mgmt-functions.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="SECT1"
CLASS="SECT1"
><H1
><H1
CLASS="SECT1"
CLASS="SECT1"
><A
><A
NAME="COMPAT-UITRON-INTERRUPT-MANAGEMENT-FUNCTIONS">Interrupt management functions</H1
NAME="COMPAT-UITRON-INTERRUPT-MANAGEMENT-FUNCTIONS">Interrupt management functions</H1
><P
><P
>These functions are fully supported in this release:</P
>These functions are fully supported in this release:</P
><TABLE
><TABLE
BORDER="5"
BORDER="5"
BGCOLOR="#E0E0F0"
BGCOLOR="#E0E0F0"
WIDTH="70%"
WIDTH="70%"
><TR
><TR
><TD
><TD
><PRE
><PRE
CLASS="PROGRAMLISTING"
CLASS="PROGRAMLISTING"
>void   <TT
>void   <TT
CLASS="FUNCTION"
CLASS="FUNCTION"
> ret_int</TT
> ret_int</TT
>( void )</PRE
>( void )</PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
><TABLE
><TABLE
BORDER="5"
BORDER="5"
BGCOLOR="#E0E0F0"
BGCOLOR="#E0E0F0"
WIDTH="70%"
WIDTH="70%"
><TR
><TR
><TD
><TD
><PRE
><PRE
CLASS="PROGRAMLISTING"
CLASS="PROGRAMLISTING"
>ER <TT
>ER <TT
CLASS="FUNCTION"
CLASS="FUNCTION"
>loc_cpu</TT
>loc_cpu</TT
>( void )</PRE
>( void )</PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
><TABLE
><TABLE
BORDER="5"
BORDER="5"
BGCOLOR="#E0E0F0"
BGCOLOR="#E0E0F0"
WIDTH="70%"
WIDTH="70%"
><TR
><TR
><TD
><TD
><PRE
><PRE
CLASS="PROGRAMLISTING"
CLASS="PROGRAMLISTING"
>ER <TT
>ER <TT
CLASS="FUNCTION"
CLASS="FUNCTION"
>unl_cpu</TT
>unl_cpu</TT
>( void )</PRE
>( void )</PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
><TABLE
><TABLE
BORDER="5"
BORDER="5"
BGCOLOR="#E0E0F0"
BGCOLOR="#E0E0F0"
WIDTH="70%"
WIDTH="70%"
><TR
><TR
><TD
><TD
><PRE
><PRE
CLASS="PROGRAMLISTING"
CLASS="PROGRAMLISTING"
>ER <TT
>ER <TT
CLASS="FUNCTION"
CLASS="FUNCTION"
>dis_int</TT
>dis_int</TT
>(
>(
    UINT <SPAN
    UINT <SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>eintno</I
>eintno</I
></SPAN
></SPAN
> )</PRE
> )</PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
><TABLE
><TABLE
BORDER="5"
BORDER="5"
BGCOLOR="#E0E0F0"
BGCOLOR="#E0E0F0"
WIDTH="70%"
WIDTH="70%"
><TR
><TR
><TD
><TD
><PRE
><PRE
CLASS="PROGRAMLISTING"
CLASS="PROGRAMLISTING"
>ER <TT
>ER <TT
CLASS="FUNCTION"
CLASS="FUNCTION"
>ena_int</TT
>ena_int</TT
>(
>(
    UINT <SPAN
    UINT <SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>eintno</I
>eintno</I
></SPAN
></SPAN
> )</PRE
> )</PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
><TABLE
><TABLE
BORDER="5"
BORDER="5"
BGCOLOR="#E0E0F0"
BGCOLOR="#E0E0F0"
WIDTH="70%"
WIDTH="70%"
><TR
><TR
><TD
><TD
><PRE
><PRE
CLASS="PROGRAMLISTING"
CLASS="PROGRAMLISTING"
>void   <TT
>void   <TT
CLASS="FUNCTION"
CLASS="FUNCTION"
>ret_wup</TT
>ret_wup</TT
>(
>(
    ID <SPAN
    ID <SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>tskid</I
>tskid</I
></SPAN
></SPAN
> )</PRE
> )</PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
><TABLE
><TABLE
BORDER="5"
BORDER="5"
BGCOLOR="#E0E0F0"
BGCOLOR="#E0E0F0"
WIDTH="70%"
WIDTH="70%"
><TR
><TR
><TD
><TD
><PRE
><PRE
CLASS="PROGRAMLISTING"
CLASS="PROGRAMLISTING"
>ER <TT
>ER <TT
CLASS="FUNCTION"
CLASS="FUNCTION"
>iwup_tsk</TT
>iwup_tsk</TT
>(
>(
    ID <SPAN
    ID <SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>tskid</I
>tskid</I
></SPAN
></SPAN
> )</PRE
> )</PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
><TABLE
><TABLE
BORDER="5"
BORDER="5"
BGCOLOR="#E0E0F0"
BGCOLOR="#E0E0F0"
WIDTH="70%"
WIDTH="70%"
><TR
><TR
><TD
><TD
><PRE
><PRE
CLASS="PROGRAMLISTING"
CLASS="PROGRAMLISTING"
>ER <TT
>ER <TT
CLASS="FUNCTION"
CLASS="FUNCTION"
>isig_sem</TT
>isig_sem</TT
>(
>(
    ID <SPAN
    ID <SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>semid</I
>semid</I
></SPAN
></SPAN
> )</PRE
> )</PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
><TABLE
><TABLE
BORDER="5"
BORDER="5"
BGCOLOR="#E0E0F0"
BGCOLOR="#E0E0F0"
WIDTH="70%"
WIDTH="70%"
><TR
><TR
><TD
><TD
><PRE
><PRE
CLASS="PROGRAMLISTING"
CLASS="PROGRAMLISTING"
>ER <TT
>ER <TT
CLASS="FUNCTION"
CLASS="FUNCTION"
>iset_flg</TT
>iset_flg</TT
>(
>(
    ID <SPAN
    ID <SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>flgid ,</I
>flgid ,</I
></SPAN
></SPAN
>
>
    UID<SPAN
    UID<SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
> setptn</I
> setptn</I
></SPAN
></SPAN
> )</PRE
> )</PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
><TABLE
><TABLE
BORDER="5"
BORDER="5"
BGCOLOR="#E0E0F0"
BGCOLOR="#E0E0F0"
WIDTH="70%"
WIDTH="70%"
><TR
><TR
><TD
><TD
><PRE
><PRE
CLASS="PROGRAMLISTING"
CLASS="PROGRAMLISTING"
>ER <TT
>ER <TT
CLASS="FUNCTION"
CLASS="FUNCTION"
>isend_msg</TT
>isend_msg</TT
>(
>(
    ID <SPAN
    ID <SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>mbxid ,</I
>mbxid ,</I
></SPAN
></SPAN
>
>
    T_MSG<SPAN
    T_MSG<SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
> *pk_msg</I
> *pk_msg</I
></SPAN
></SPAN
> )</PRE
> )</PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
><P
><P
>Note that <TT
>Note that <TT
CLASS="FUNCTION"
CLASS="FUNCTION"
>ret_int()</TT
>ret_int()</TT
> and
> and
the <TT
the <TT
CLASS="FUNCTION"
CLASS="FUNCTION"
>ret_wup()</TT
>ret_wup()</TT
> are  implemented
> are  implemented
as macros, containing a &#8220;return&#8221; statement.</P
as macros, containing a &#8220;return&#8221; statement.</P
><P
><P
>Also note that <TT
>Also note that <TT
CLASS="FUNCTION"
CLASS="FUNCTION"
>ret_wup()</TT
>ret_wup()</TT
> and
> and
the <TT
the <TT
CLASS="FUNCTION"
CLASS="FUNCTION"
>ixxx_yyy()</TT
>ixxx_yyy()</TT
> style functions
> style functions
will only work when called from an ISR whose associated DSR is <TT
will only work when called from an ISR whose associated DSR is <TT
CLASS="FUNCTION"
CLASS="FUNCTION"
>cyg_uitron_dsr()</TT
>cyg_uitron_dsr()</TT
>,
>,
as specified in include file <TT
as specified in include file <TT
CLASS="FILENAME"
CLASS="FILENAME"
>&lt;cyg/compat/uitron/uit_ifnc.h&gt;</TT
>&lt;cyg/compat/uitron/uit_ifnc.h&gt;</TT
>,
>,
which defines the <TT
which defines the <TT
CLASS="FUNCTION"
CLASS="FUNCTION"
>ixxx_yyy()</TT
>ixxx_yyy()</TT
> style
> style
functions also.</P
functions also.</P
><P
><P
>If you are writing interrupt handlers more in the
>If you are writing interrupt handlers more in the
<SPAN
<SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>eCos</I
>eCos</I
></SPAN
></SPAN
> style, with separate ISR and DSR routines both of
> style, with separate ISR and DSR routines both of
your own devising, do not use these special functions from a DSR: use plain
your own devising, do not use these special functions from a DSR: use plain
<TT
<TT
CLASS="FUNCTION"
CLASS="FUNCTION"
>xxx_yyy()</TT
>xxx_yyy()</TT
> style functions (with no &#8216;i&#8217; prefix)
> style functions (with no &#8216;i&#8217; prefix)
instead, and do not call any &micro;ITRON functions from the ISR at
instead, and do not call any &micro;ITRON functions from the ISR at
all.</P
all.</P
><P
><P
>The following functions are not supported in this release: </P
>The following functions are not supported in this release: </P
><TABLE
><TABLE
BORDER="5"
BORDER="5"
BGCOLOR="#E0E0F0"
BGCOLOR="#E0E0F0"
WIDTH="70%"
WIDTH="70%"
><TR
><TR
><TD
><TD
><PRE
><PRE
CLASS="PROGRAMLISTING"
CLASS="PROGRAMLISTING"
>ER <TT
>ER <TT
CLASS="FUNCTION"
CLASS="FUNCTION"
>def_int</TT
>def_int</TT
>(
>(
    UINT <SPAN
    UINT <SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>dintno,</I
>dintno,</I
></SPAN
></SPAN
>
>
  T_DINT *<SPAN
  T_DINT *<SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>pk_dint</I
>pk_dint</I
></SPAN
></SPAN
> )</PRE
> )</PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
><TABLE
><TABLE
BORDER="5"
BORDER="5"
BGCOLOR="#E0E0F0"
BGCOLOR="#E0E0F0"
WIDTH="70%"
WIDTH="70%"
><TR
><TR
><TD
><TD
><PRE
><PRE
CLASS="PROGRAMLISTING"
CLASS="PROGRAMLISTING"
>ER <TT
>ER <TT
CLASS="FUNCTION"
CLASS="FUNCTION"
>chg_iXX</TT
>chg_iXX</TT
>(
>(
    UINT <SPAN
    UINT <SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>iXXXX</I
>iXXXX</I
></SPAN
></SPAN
> )
> )
  </PRE
  </PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
><TABLE
><TABLE
BORDER="5"
BORDER="5"
BGCOLOR="#E0E0F0"
BGCOLOR="#E0E0F0"
WIDTH="70%"
WIDTH="70%"
><TR
><TR
><TD
><TD
><PRE
><PRE
CLASS="PROGRAMLISTING"
CLASS="PROGRAMLISTING"
>ER <TT
>ER <TT
CLASS="FUNCTION"
CLASS="FUNCTION"
>ref_iXX</TT
>ref_iXX</TT
>(
>(
    UINT * <SPAN
    UINT * <SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>p_iXXXX</I
>p_iXXXX</I
></SPAN
></SPAN
> )</PRE
> )</PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
><P
><P
>These unsupported functions are all Level C (CPU dependent).
>These unsupported functions are all Level C (CPU dependent).
Equivalent functionality is available via other <SPAN
Equivalent functionality is available via other <SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>eCos</I
>eCos</I
></SPAN
></SPAN
>-specific
>-specific
APIs. </P
APIs. </P
><DIV
><DIV
CLASS="SECT2"
CLASS="SECT2"
><H2
><H2
CLASS="SECT2"
CLASS="SECT2"
><A
><A
NAME="AEN13831">Error checking</H2
NAME="AEN13831">Error checking</H2
><P
><P
>The following conditions are only checked for, and only return
>The following conditions are only checked for, and only return
errors if
errors if
<TT
<TT
CLASS="LITERAL"
CLASS="LITERAL"
>CYGSEM_UITRON_BAD_PARAMS_RETURN_ERRORS</TT
>CYGSEM_UITRON_BAD_PARAMS_RETURN_ERRORS</TT
>
>
is enabled:</P
is enabled:</P
><P
><P
></P
></P
><UL
><UL
><LI
><LI
><P
><P
><TT
><TT
CLASS="FUNCTION"
CLASS="FUNCTION"
>loc/unl_cpu()</TT
>loc/unl_cpu()</TT
>
>
: these must only be called in a
: these must only be called in a
&micro;ITRON task context, else E_CTX.</P
&micro;ITRON task context, else E_CTX.</P
></LI
></LI
><LI
><LI
><P
><P
><TT
><TT
CLASS="FUNCTION"
CLASS="FUNCTION"
>dis/ena_int()</TT
>dis/ena_int()</TT
>
>
: the interrupt number must be in range as specified by the platform
: the interrupt number must be in range as specified by the platform
HAL in qustion, else E_PAR.</P
HAL in qustion, else E_PAR.</P
></LI
></LI
></UL
></UL
></DIV
></DIV
></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="compat-uitron-extended-sync-comm-functions.html"
HREF="compat-uitron-extended-sync-comm-functions.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="compat-uitron-memory-pool-mgmt-functions.html"
HREF="compat-uitron-memory-pool-mgmt-functions.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"
>Extended Synchronization and Communication Functions</TD
>Extended Synchronization and Communication Functions</TD
><TD
><TD
WIDTH="34%"
WIDTH="34%"
ALIGN="center"
ALIGN="center"
VALIGN="top"
VALIGN="top"
><A
><A
HREF="compat-uitron-microitron-api.html"
HREF="compat-uitron-microitron-api.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"
>Memory pool Management Functions</TD
>Memory pool Management Functions</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.