EmbDev.net

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


Author: Harold Ritter (hlritter)
Posted on:

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

Author: Martin Thomas (mthomas) (Moderator)
Posted on:

Rate this post
0 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/...
should include correct defintion-files. Extract one of the archives in
the package and look into the directory
at91lib/boards/at91sam7s-ek/at91sam7s*

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.