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: accurate ms delay


On Wed, 3 Apr 2002, Jonathan Larmour wrote:

> Jesper Skov wrote:
> >
> > On Fri, 2002-03-08 at 12:26, Jani Monoses wrote:
> > >
> > > Is it OK to use hal_delay_us in a generic .inl driver instead of the
> > > not-too-accurate for loops?
> >
> > Yes, it's always a preference over for loops. Just be carefull to not
> > delay with the interrupts disabled.
>
> And obviously it can be no more accurate than the resolution of the clock
> device feeding it.

I was thinking about waiting for erase completion in flash drivers.I hope
interrupts are enabled at that time.
Jani



-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


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