This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: FW: 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]