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]

Re: regarding microsec delay


"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


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