EmbDev.net

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


Author: Jim Kaz (ancaritha)
Posted on:

Rate this post
0 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

Author: Martin Thomas (Guest)
Posted on:

Rate this post
0 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

Author: Jim Kaz (ancaritha)
Posted on:

Rate this post
0 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

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.