This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: cyg_interrupt_disable/enable question
- From: Gary Thomas <gthomas at ecoscentric dot com>
- To: andy dot tenka at delphiauto dot com
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: 21 Sep 2002 12:36:13 -0600
- Subject: Re: [ECOS] cyg_interrupt_disable/enable question
- References: <05256C3B.00638914.00@notes.delphiauto.com>
On Sat, 2002-09-21 at 12:03, andy.tenka@delphiauto.com wrote:
>
>
> One followup question:
>
> Does cyg_disable_interrupt also mask the scheduler interrupt (ie, disables the
> scheduler)?
> Thanks.
>
I also forgot to mention before - don't use "cyg_disable_interrupts()",
but rather HAL_DISABLE_INTERRUPTS(). The macros are designed to be
portable and will be present, no matter the platform. The functions
like "cyg_disable_interrupts()" are used by some platforms to perform
the operation, but are not guaranteed to exist [they aren't part of
the HAL API]. Use the HAL_xxx macros whenever possible.
--
------------------------------------------------------------
Gary Thomas |
eCosCentric, Ltd. |
+1 (970) 229-1963 | eCos & RedBoot experts
gthomas@ecoscentric.com |
http://www.ecoscentric.com/ |
------------------------------------------------------------
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss