mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
simtrace board specific defines
This commit is contained in:
@@ -5,9 +5,9 @@
|
|||||||
#include "syscalls.h" /** RedHat Newlib minimal stub */
|
#include "syscalls.h" /** RedHat Newlib minimal stub */
|
||||||
|
|
||||||
/** Name of the board */
|
/** Name of the board */
|
||||||
#define BOARD_NAME "SAM3S-EK"
|
#define BOARD_NAME "SAM3S-SIMTRACE"
|
||||||
/** Board definition */
|
/** Board definition */
|
||||||
#define sam3sek
|
#define simtrace
|
||||||
/** Family definition (already defined) */
|
/** Family definition (already defined) */
|
||||||
#define sam3s
|
#define sam3s
|
||||||
/** Core definition */
|
/** Core definition */
|
||||||
@@ -17,7 +17,18 @@
|
|||||||
#define BOARD_MAINOSC 12000000
|
#define BOARD_MAINOSC 12000000
|
||||||
#define BOARD_MCK 48000000
|
#define BOARD_MCK 48000000
|
||||||
|
|
||||||
//#define LED_STATUS PIO_PA8
|
#define LED_RED PIO_PA17
|
||||||
#define LED_STATUS PIO_PA17
|
#define LED_GREEN PIO_PA18
|
||||||
|
|
||||||
|
/** USART0 pin RX */
|
||||||
|
#define PIN_USART0_RXD {PIO_PA9A_URXD0, PIOA, ID_PIOA, PIO_PERIPH_A, PIO_DEFAULT}
|
||||||
|
/** USART0 pin TX */
|
||||||
|
#define PIN_USART0_TXD {PIO_PA10A_UTXD0, PIOA, ID_PIOA, PIO_PERIPH_A, PIO_DEFAULT}
|
||||||
|
|
||||||
|
#define BOARD_PIN_USART_RXD PIN_USART0_RXD
|
||||||
|
#define BOARD_PIN_USART_TXD PIN_USART0_TXD
|
||||||
|
|
||||||
|
#define BOARD_ID_USART ID_USART0
|
||||||
|
#define BOARD_USART_BASE USART0
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user