aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/boards
diff options
context:
space:
mode:
authoredolomb <none@example.com>2018-03-16 15:05:28 +0000
committeredolomb <none@example.com>2018-03-16 15:05:28 +0000
commit45937b8179d364df1a186fadac7c4665db33836a (patch)
treea3a133d1a8f4ea5978348e5ec5f6510cdf1542ea /os/hal/boards
parentae18581dd903c5b0bf1d07e7465cbebfb14597f8 (diff)
downloadChibiOS-45937b8179d364df1a186fadac7c4665db33836a.tar.gz
ChibiOS-45937b8179d364df1a186fadac7c4665db33836a.tar.bz2
ChibiOS-45937b8179d364df1a186fadac7c4665db33836a.zip
- Minor changes
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11780 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal/boards')
-rw-r--r--os/hal/boards/ATSAMA5D2_XULT/board.c5
-rw-r--r--os/hal/boards/ATSAMA5D2_XULT/board.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/os/hal/boards/ATSAMA5D2_XULT/board.c b/os/hal/boards/ATSAMA5D2_XULT/board.c
index f6138bcd5..a91a1d60b 100644
--- a/os/hal/boards/ATSAMA5D2_XULT/board.c
+++ b/os/hal/boards/ATSAMA5D2_XULT/board.c
@@ -84,6 +84,11 @@ static const sama_pio_init_t sama_inits[] = {
SAMA_PIN_N(PIOB_USER_PB),
SAMA_PIO_FUNC_GPIO | SAMA_PIO_DIR_INPUT | SAMA_PIO_PUEN | SAMA_PIO_SCHMITT,
SAMA_PIO_HIGH},
+ /* UART1 */
+ {SAMA_PIOD,
+ SAMA_PIN_N(PIOD_URXD1) | SAMA_PIN_N(PIOD_UTXD1),
+ SAMA_PIO_FUNC_PERIPH_A,
+ SAMA_PIO_HIGH},
/* list terminated*/
{-1, 0, 0, 0}
};
diff --git a/os/hal/boards/ATSAMA5D2_XULT/board.h b/os/hal/boards/ATSAMA5D2_XULT/board.h
index f8f737466..44ee1b99d 100644
--- a/os/hal/boards/ATSAMA5D2_XULT/board.h
+++ b/os/hal/boards/ATSAMA5D2_XULT/board.h
@@ -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