aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authoredolomb <none@example.com>2018-03-08 12:57:25 +0000
committeredolomb <none@example.com>2018-03-08 12:57:25 +0000
commit2467469683c164ee06c2a1a1058509d34ad993d7 (patch)
tree0fbc85f941e8170f21a88da639afd24482f446b3 /os
parente854f8bdbfe4b870c38744d35aa6d63f5cca6841 (diff)
downloadChibiOS-2467469683c164ee06c2a1a1058509d34ad993d7.tar.gz
ChibiOS-2467469683c164ee06c2a1a1058509d34ad993d7.tar.bz2
ChibiOS-2467469683c164ee06c2a1a1058509d34ad993d7.zip
Updated SEC board with SD1 pin's configuration
git-svn-id: https://svn.code.sf.net/p/chibios/svn2/trunk@11634 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os')
-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