This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: from ISR to thread
- From: "Patrick Doyle" <wpd at delcomsys dot com>
- To: "Nick Garnett" <nickg at redhat dot com>, <ecos-discuss at sources dot redhat dot com>
- Date: Wed, 5 Dec 2001 11:16:30 -0500
- Subject: RE: [ECOS] from ISR to thread
> ISR code:
> {
> cyg_drv_isr_lock()
> rbuf.putdata(hw.data)
> cyg_drv_isr_unlock()
>
> cyg_drv_interrupt_acknowledge()
>
> return cyg_isr_call_dsr
> }
This one caught me by surprise. Why would you have to an ISR lock/unlock
from within an ISR? Were you just being extra careful in case some other
(higher priority?) ISR's happen to use the same ring buffer?
--wpd