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: Microsecond delay


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/


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