blob: 3718c09334fa2b688087dcf285d2a0332b9dbea2 [file] [log] [blame]
Christina Quastb0a05702014-11-28 10:27:32 +01001#ifndef _BOARD_
2#define _BOARD_
3
4#include "chip.h"
Christina Quast1e83f8b2014-12-02 13:19:34 +01005#include "pio.h"
Christina Quastb0a05702014-11-28 10:27:32 +01006#include "syscalls.h" /** RedHat Newlib minimal stub */
Christina Quast1e83f8b2014-12-02 13:19:34 +01007#include "SAM3S.h"
Christina Quastb0a05702014-11-28 10:27:32 +01008
9/** Name of the board */
Christina Quasta42c11f2014-11-28 16:38:26 +010010#define BOARD_NAME "SAM3S-SIMTRACE"
Christina Quastb0a05702014-11-28 10:27:32 +010011/** Board definition */
Christina Quasta42c11f2014-11-28 16:38:26 +010012#define simtrace
Christina Quastb0a05702014-11-28 10:27:32 +010013/** Family definition (already defined) */
14#define sam3s
15/** Core definition */
16#define cortexm3
17
Christina Quastb0a05702014-11-28 10:27:32 +010018#define BOARD_MAINOSC 12000000
19#define BOARD_MCK 48000000
20
Christina Quasta42c11f2014-11-28 16:38:26 +010021#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 Quastb0a05702014-11-28 10:27:32 +010034
Christina Quast1e83f8b2014-12-02 13:19:34 +010035#define PINS_UART { PIO_PA9A_URXD0|PIO_PA10A_UTXD0, PIOA, ID_PIOA, PIO_PERIPH_A, PIO_DEFAULT}
36
Christina Quastb0a05702014-11-28 10:27:32 +010037#endif