[ECOS] hal_platform_setup.h usage

Andrew Lunn andrew@lunn.ch
Thu Jun 28 18:32:00 GMT 2007

> Andrew wrote:
> >You can use that macro within the setup code, ie inside
> >hal_platform_setup. For application code there is often a
> >function, eg the AT91 boards have hal_at91_led().
> Thank you andrew i found the hal_lpc2xxx_set_leds() function, that's
> exactly what i was seeking for !
> So if i understand things correctly, the whole hal_platform_setup
> thing is launched at startup ?

Correct. Take a look at the HAL porting guide. It should tell you more
about how the startup sequence works.
> Can i modify that file to fit my platform specs ?
> I'm using the olimex lpc2106 eval board package on an IAR kickstart
> lpc2106 eval board and some things are a bit different here and there.

You might want to make a new HAL package based on the nearest match.
Look at the porting guide and other HALs for ideas.


Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

More information about the Ecos-discuss mailing list