This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: from ISR to thread
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- To: Schmidt Henning Larsen <HenningLS at danfoss dot com>
- Cc: "'ecos-discuss at sources dot redhat dot com'" <ecos-discuss at sources dot redhat dot com>
- Date: Wed, 5 Dec 2001 15:26:46 +0100
- Subject: Re: [ECOS] from ISR to thread
- References: <829F632D2F25D411B6920008C716F831025B8130@dd01-e01.drives.danfoss.dk>
> Hi
>
> Maybe I've misunderstood something, but at:
> http://sources.redhat.com/ecos/docs-latest/ref/ecos-ref.13.html
> I seems that
>
> cyg_drv_cond_signal
> cyg_drv_cond_broadcast
>
> are the only synchronization primitives I can use in a DSR.
>
> But perhaps I actually can use "cyg_semaphore_post(sem)" ?
My experience is that cyg_semaphore_post works.
The advantage of using cyg_drv* functions is that they exist with or
without the kernel, where as cyg_semaphore* needs the kernel. This
then allows you to use the driver with redboot which does not have a
kernel.
Andrew