This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: short accurate delay in DSR or startup
- From: Gary Thomas <gary at mlbassoc dot com>
- To: harmon <lharmon at neo dot rr dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Mon, 26 Jul 2004 18:22:14 -0600
- Subject: Re: [ECOS] short accurate delay in DSR or startup
- Organization: MLB Associates
- References: <001001c4736b$af330d70$8601a8c0@k7sem>
On Mon, 2004-07-26 at 17:53, harmon wrote:
> When initializing a chip, I need to delay for ~ 1 millisecond. I can't
> use any blocking calls, so I am now using a simple for loop to eat up
> time. Is there a portable, accurate way to delay within a DSR or
> initialization code?
#include <cyg/hal/hal_if.h>
CYGACC_CALL_IF_DELAY_US(_n_ms);
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss