This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Microsecond delay
- To: chandrag at danlawinc dot com
- Subject: Re: [ECOS] Microsecond delay
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Sat, 14 Jul 2001 18:13:40 +0100
- CC: ecos-discuss at sources dot redhat dot com
- References: <3B4FD28D.716DF444@danlawinc.com>
Chandra Sekhar G wrote:
>
> I have eCos sources for the MPC555. It seems it does not provide
> the microsecond delay functionality. I downloaded the file hal_if.h
> which has the macros defined for that. How can I integrate this with my
>
> eCos source?
The MPC555 port probably doesn't have virtual vector support at all. That
would need to be implemented first before implementing the us delay
functions. Look at the porting guide in the online docs. Particularly
http://sources.redhat.com/ecos/docs-latest/porting/hal-calling-if.html
Alternatively if all you want is the microsecond delay, just write your own
self-contained function to do so using delay_us() in
hal/common/current/src/hal_if.c as a guide to what you should do. If you
are using this with the eCos kernel, you can just use that bit of the
delay_us functino without modification. Note that it is a busy wait though.
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
Come to the Red Hat TechWorld open source conference in Brussels!
Keynotes, techie talks and exhibitions http://www.redhat-techworld.com/