[ECOS] Equivalent of sleep() in ECOS for delay

Rosimildo da Silva rosimildo@hotmail.com
Thu Jul 19 19:06:00 GMT 2001


From: "Jonathan Larmour" <jlarmour@redhat.com>
To: "Rosimildo da Silva" <rosimildo@hotmail.com>
Cc: "'eCos mailing list'" <ecos-discuss@sources.redhat.com>
Sent: Thursday, July 19, 2001 8:08 PM
Subject: Re: [ECOS] Equivalent of sleep() in ECOS for delay


> > > > cyg_thread_delay (NUMms) can be used inside of a thread.
> > >
> > > Yes, preferentially.
> > >
> >
> > OOPS !, I was thought that the argument for
> > cyg_thread_delay() was ticks !.
> 
> Actually that's right - I didn't notice that. You can use
> cyg_clock_get_resolution() to get the resolution, which allows you to
> convert ticks to ms.
> 

I was about to make code sources, when I've decided to check the docs. :-)

Rosimildo.







More information about the Ecos-discuss mailing list