[ECOS] from ISR to thread

Robin Farine acnrf@dial.eunet.ch
Wed Dec 5 06:57:00 GMT 2001


Ah, now I see. No definition exists for the drv flavor of counting semaphore. I
agree with Henning, the counting semaphore would do a better job than the
condition variable in such a situation.

Robin

Andrew Lunn <andrew.lunn@ascom.ch> writes:

> > 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



More information about the Ecos-discuss mailing list