Paulo Sousa wrote:
> When looking at the examples for the AT91SAM7S, I noticed the
> "AT91SAM7S64.h" (which seems to be the same file as in the
> "BasicIAR-SAM7S64-IAR430A" package from Atmel -
> appears to be out of date.
> Some details like the "AT91C_IFLASH_NB_OF_PAGES" and the
> "AT91C_IFLASH_NB_OF_LOCK_BITS" seem to have been added to reflect the
> values described on the datasheet (512 and 16), as well as some changes
> in the peripherals API definitions.
> Should I use this updated header file from Atmel or just stick with the
> one on the WinARM examples?
Please compile the examples with the files included to avoid
inconsistancies between the example-code and
register-definitions/at91-lib. I know that newer files than the ones
included in some of the examples are available and I try to use the
latest files when I port or create an example for gcc/WinARM. But I do
not have the time to update the examples everytime. That's why all
headers are included in the examples as a "feature freeze".
Feel free to send me the source-package with the newer files if you have
tested the binary with the hardware and I will place them on the server
and include them in the next WinARM-examples-dir. (e-mail-addr. in the
WinARM readme and at the bottom of the WinARM-page)
For you own development I'd recommend to work with the new files of the
register-definitions and the at91-lib. Beside of new functions or
API-changes some bugs might have been fixed in the new files.