aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/boards
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/boards')
-rw-r--r--os/hal/boards/ATSAMA5D2_XULT_SEC/board.c8
-rw-r--r--os/hal/boards/ATSAMA5D2_XULT_SEC/board.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/os/hal/boards/ATSAMA5D2_XULT_SEC/board.c b/os/hal/boards/ATSAMA5D2_XULT_SEC/board.c
index 6eeddc02c..d42fe4305 100644
--- a/os/hal/boards/ATSAMA5D2_XULT_SEC/board.c
+++ b/os/hal/boards/ATSAMA5D2_XULT_SEC/board.c
@@ -87,10 +87,10 @@ static const sama_pio_init_t sama_inits[] = {
SAMA_PIN_N(PIOB_LED_BLUE) | SAMA_PIN_N(PIOB_LED_GREEN),
SAMA_PIO_FUNC_GPIO | SAMA_PIO_DIR_OUTPUT | SAMA_PIO_DRVSTR_HI,
SAMA_PIO_HIGH},
- /* UART3 */
- {SAMA_PIOB,
- SAMA_PIN_N(PIOB_URXD3) | SAMA_PIN_N(PIOB_UTXD3),
- SAMA_PIO_FUNC_PERIPH_C,
+ /* UART1 */
+ {SAMA_PIOD,
+ SAMA_PIN_N(PIOD_URXD1) | SAMA_PIN_N(PIOD_UTXD1),
+ SAMA_PIO_FUNC_PERIPH_A,
SAMA_PIO_HIGH},
/* FLEXSPI2 */
{SAMA_PIOD,
diff --git a/os/hal/boards/ATSAMA5D2_XULT_SEC/board.h b/os/hal/boards/ATSAMA5D2_XULT_SEC/board.h
index 02d0a2062..d8a8efc99 100644
--- a/os/hal/boards/ATSAMA5D2_XULT_SEC/board.h
+++ b/os/hal/boards/ATSAMA5D2_XULT_SEC/board.h
@@ -124,8 +124,8 @@
#define PIOB_PIN8 8U
#define PIOB_TE 9U
#define PIOB_EN_LCD_BIAS 10U
-#define PIOB_URXD3 11U
-#define PIOB_UTXD3 12U
+#define PIOB_PIN11 11U
+#define PIOB_PIN12 12U
#define PIOB_PIN13 13U
#define PIOB_PIN14 14U
#define PIOB_PIN15 15U
@@ -181,8 +181,8 @@
#define PIOD_PIO0 0U
#define PIOD_PIN1 1U
-#define PIOD_PIN2 2U
-#define PIOD_PIN3 3U
+#define PIOD_URXD1 2U
+#define PIOD_UTXD1 3U
#define PIOD_PIN4 4U
#define PIOD_PIN5 5U
#define PIOD_PIN6 6U