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: how to modify the header files for eb40 to meet a custom board


Shaojie Wu wrote:
> 
> I have successfully implemented some functions using
> serial drivers for eb40. Now I plan to write a serial driver
> code for a custom built board with chip AT91FR4081,Since
> eb40 use the similiar arm chip and eCos does have a eb40
> template, I would like to change the header files of eb40
> according to the configuration of the custom board coz I
> think it is a easier and faster way. But I checked the header
> files eCos cresated for eb40 and seems only "hal_platform_setup.h"
> and "plf_io.h" includes the platform information. I know at91fr4081
> and at91r40807 shares same USART address and control registers.
> Does it mean after changing a little bit of the linker script,
> The code for eb40 I wrote for eb40 will work with the custom board
> without any problems? If not, what are the other header files I need
> to change? any recommendation will be highly appreciated.
> Thanks so much.

The AT91 chip is pretty self-contained ("system on a chip").

If you've changed the linker script, and checked the hal_platform_setup.h
file there's not likely to be much else - the other aspects are pretty much
generic to all AT91s. At least you should probably be able to start it
loading on your board and debug it if it stops somewhere.

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]