AT91SAM7 Header Files

OP #1171306
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
Guest #1171307
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

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.