EmbDev.net

Forum: ARM programming with GCC/GNU tools AT91SAM7S.H


von Harold R. (hlritter)


Rate this post
useful
not useful
I have an Atmel AT91SAM7S-EK board with the 7S256 part mounted. I also
have the tutorials from Atmel. The tutorials contain a file called
"at91sam7s.h". The definitions inside this file are actually for the
7X256 and there are differences.

For instance RXD0 is on PA5 of the 7S part but the definitiuon for it in
the H file is as follows

#define AT91C_PIO_PA0        ((unsigned int) 1 <<  0) // Pin Controlled
by PA0
#define AT91C_PA0_RXD0     ((unsigned int) AT91C_PIO_PA0) //  USART 0
Receive

This definition is correct for the 7X part but not the 7S.

The blinky demo works on my board as it is supposed to and I assume that
much of the 7X part is exactly as the 7S part but does there exist
somewhere a header file that reflects the true definitions for the 7S
part?

Thanks!

von Martin T. (mthomas) (Moderator)


Rate this post
useful
not useful
Harold Ritter wrote:
> I have an Atmel AT91SAM7S-EK board with the 7S256 part mounted. I also
> have the tutorials from Atmel. The tutorials contain a file called
> "at91sam7s.h". The definitions inside this file are actually for the
> 7X256 and there are differences.
>
> For instance RXD0 is on PA5 of the 7S part but the definitiuon for it in
> the H file is as follows
>
> #define AT91C_PIO_PA0        ((unsigned int) 1 <<  0) // Pin Controlled
> by PA0
> #define AT91C_PA0_RXD0     ((unsigned int) AT91C_PIO_PA0) //  USART 0
> Receive
>
> This definition is correct for the 7X part but not the 7S.
>
> The blinky demo works on my board as it is supposed to and I assume that
> much of the 7X part is exactly as the 7S part but does there exist
> somewhere a header file that reflects the true definitions for the 7S
> part?

The software-package
http://www.atmel.com/dyn/resources/prod_documents/softpack-1.2-at91sam7s-ek-web.zip
should include correct defintion-files. Extract one of the archives in
the package and look into the directory
at91lib/boards/at91sam7s-ek/at91sam7s*

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.