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.