EmbDev.net

Forum: ARM programming with GCC/GNU tools AT91SAM7 Header Files


von Jim K. (ancaritha)


Rate this post
useful
not useful
Under WinARM\arm-elf\include\arch\atmel there are a limited number of
header files.  There are no AT91SAM7 header files there, but there are
header files under examples for SAM7S processors.

If I wanted to compile something for the AT91SAM7A3, can I grab the
header file from the demo file available from the Atmel website
(ioat91sam7a3.h) and place it into the \arch\atmel (and perhaps remove
the io from the front?).  Will that work?


Thanks for any help.

-Jim

von Martin Thomas (Guest)


Rate this post
useful
not useful
Jim Kaz wrote:
> Under WinARM\arm-elf\include\arch\atmel there are a limited number of
> header files.  There are no AT91SAM7 header files there, but there are
> header files under examples for SAM7S processors.
>
> If I wanted to compile something for the AT91SAM7A3, can I grab the
> header file from the demo file available from the Atmel website
> (ioat91sam7a3.h) and place it into the \arch\atmel (and perhaps remove
> the io from the front?).  Will that work?

Yes, it should work. arm-elf/include is a preconfigured entry in the
include-files search-path so any header-file placed in arch/atmel can be
included with #include <arch/atmel/xyz.h>.

But at least for the first test it might be better to keep the
header-files (and the at91*_lib if there is one for the SAM7As) in the
project-directory. Keep the filenames as they are. It might save some
work if you update to a new toolchain, updated files from Ateml are
available or if you send your source-code to someone else.

Martin Thomas

von Jim K. (ancaritha)


Rate this post
useful
not useful
Thanks for the fast reply!

Now I just need to wait for my Eval board to get here for me to play
with it :)

-Jim

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.