This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: short accurate delay in DSR or startup


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]