This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
RE: FW: Is eCos running any background process?
- From: "Paul D. DeRocco" <pderocco at ix dot netcom dot com>
- To: "eCos Discuss" <ecos-discuss at ecos dot sourceware dot org>
- Date: Thu, 9 Oct 2008 00:32:36 -0700
- Subject: RE: [ECOS] FW: [ECOS] Is eCos running any background process?
> From: Yong Chen Tan
>
> Hi, thanks for your valuable advice you have given.
>
> Is it possible to shut off interrupts entirely?
Sure.
CYG_INTERRUPT_STATE old;
HAL_DISABLE_INTERRUPTS(old);
// do something uninterruptable
HAL_RESTORE_INTERRUPTS(old);
But unless there's no way to get your DSYNC signal to generate an interrupt,
or this is just some kluge that will never make it into a product anyway,
you really ought to consider learning how to use interrupts.
--
Ciao, Paul D. DeRocco
Paul mailto:pderocco@ix.netcom.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss