Christina Quast | b0a0570 | 2014-11-28 10:27:32 +0100 | [diff] [blame] | 1 | #ifndef _BOARD_
|
| 2 | #define _BOARD_
|
| 3 |
|
| 4 | #include "chip.h"
|
Christina Quast | 1e83f8b | 2014-12-02 13:19:34 +0100 | [diff] [blame^] | 5 | #include "pio.h"
|
Christina Quast | b0a0570 | 2014-11-28 10:27:32 +0100 | [diff] [blame] | 6 | #include "syscalls.h" /** RedHat Newlib minimal stub */
|
Christina Quast | 1e83f8b | 2014-12-02 13:19:34 +0100 | [diff] [blame^] | 7 | #include "SAM3S.h"
|
Christina Quast | b0a0570 | 2014-11-28 10:27:32 +0100 | [diff] [blame] | 8 |
|
| 9 | /** Name of the board */
|
Christina Quast | a42c11f | 2014-11-28 16:38:26 +0100 | [diff] [blame] | 10 | #define BOARD_NAME "SAM3S-SIMTRACE"
|
Christina Quast | b0a0570 | 2014-11-28 10:27:32 +0100 | [diff] [blame] | 11 | /** Board definition */
|
Christina Quast | a42c11f | 2014-11-28 16:38:26 +0100 | [diff] [blame] | 12 | #define simtrace
|
Christina Quast | b0a0570 | 2014-11-28 10:27:32 +0100 | [diff] [blame] | 13 | /** Family definition (already defined) */
|
| 14 | #define sam3s
|
| 15 | /** Core definition */
|
| 16 | #define cortexm3
|
| 17 |
|
Christina Quast | b0a0570 | 2014-11-28 10:27:32 +0100 | [diff] [blame] | 18 | #define BOARD_MAINOSC 12000000
|
| 19 | #define BOARD_MCK 48000000
|
| 20 |
|
Christina Quast | a42c11f | 2014-11-28 16:38:26 +0100 | [diff] [blame] | 21 | #define LED_RED PIO_PA17
|
| 22 | #define LED_GREEN PIO_PA18
|
| 23 |
|
| 24 | /** USART0 pin RX */
|
| 25 | #define PIN_USART0_RXD {PIO_PA9A_URXD0, PIOA, ID_PIOA, PIO_PERIPH_A, PIO_DEFAULT}
|
| 26 | /** USART0 pin TX */
|
| 27 | #define PIN_USART0_TXD {PIO_PA10A_UTXD0, PIOA, ID_PIOA, PIO_PERIPH_A, PIO_DEFAULT}
|
| 28 |
|
| 29 | #define BOARD_PIN_USART_RXD PIN_USART0_RXD
|
| 30 | #define BOARD_PIN_USART_TXD PIN_USART0_TXD
|
| 31 |
|
| 32 | #define BOARD_ID_USART ID_USART0
|
| 33 | #define BOARD_USART_BASE USART0
|
Christina Quast | b0a0570 | 2014-11-28 10:27:32 +0100 | [diff] [blame] | 34 |
|
Christina Quast | 1e83f8b | 2014-12-02 13:19:34 +0100 | [diff] [blame^] | 35 | #define PINS_UART { PIO_PA9A_URXD0|PIO_PA10A_UTXD0, PIOA, ID_PIOA, PIO_PERIPH_A, PIO_DEFAULT}
|
| 36 |
|
Christina Quast | b0a0570 | 2014-11-28 10:27:32 +0100 | [diff] [blame] | 37 | #endif
|