This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: regarding microsec delay
- To: "Natarajan, Mekala (CTS)" <NMekala at chn dot cognizant dot com>
- Subject: Re: [ECOS] regarding microsec delay
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Thu, 26 Apr 2001 19:12:42 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <DDD04F4480FED411AB5D00508BFD7A44178338@CTSINTDLSXUA>
"Natarajan, Mekala (CTS)" wrote:
>
> Hi,
>
> What is the minimum delay that I can specify by using the function -
> hal_delay_us()
>
> If I use a tick value of 10millisec can I use the above function to get
> delays of less than 10millisec ?
> Or the value taken by hal_delay_us() is independent of the value of the tick
> used.
The answer is definitely platform-dependent, but in most cases, yes it will
give you higher granularity than the clock tick because it actually reads
the value of the underlying timer which is normally at a much higher
frequency.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine