This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: accurate ms delay
- From: Jesper Skov <jskov at redhat dot com>
- To: Jani Monoses <jani at iv dot ro>
- Cc: eCos Discuss <ecos-discuss at sources dot redhat dot com>
- Date: 04 Apr 2002 12:28:54 +0200
- Subject: Re: [ECOS] accurate ms delay
- References: <Pine.LNX.4.33L2.0204041310480.20769-100000@cow>
On Thu, 2002-04-04 at 12:12, Jani Monoses wrote:
> On 4 Apr 2002, Jesper Skov wrote:
> > No, they cannot be: with interrupts enabled there can be no guarantee
> > that (a) the (timing of the) flash programming protocol is followed by
> > the driver and (b) there's no ISR that tries to accesses the flash
> > during the erase/programming of the flash.
> >
> > That's why the eCos flash drivers run from RAM and disable both cache
> > and interrupts.
>
> so for flash drivers for cycles are the way to wait...
No, use HAL_DELAY_US()
Jesper
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss