diff options
author | isiora <none@example.com> | 2018-03-08 20:56:04 +0000 |
---|---|---|
committer | isiora <none@example.com> | 2018-03-08 20:56:04 +0000 |
commit | bc5f9aa9f695c7a50bb60ded428de353be16b38b (patch) | |
tree | f78d7c73ea8bea72921f917cf4a9189305a5e4ee /os/hal/boards | |
parent | 1691477b62cfe74d4d846362b78afab32d533ee0 (diff) | |
download | ChibiOS-bc5f9aa9f695c7a50bb60ded428de353be16b38b.tar.gz ChibiOS-bc5f9aa9f695c7a50bb60ded428de353be16b38b.tar.bz2 ChibiOS-bc5f9aa9f695c7a50bb60ded428de353be16b38b.zip |
git-svn-id: https://svn.code.sf.net/p/chibios/svn2/trunk@11652 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal/boards')
-rw-r--r-- | os/hal/boards/ATSAMA5D2_XULT_NSEC/board.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/os/hal/boards/ATSAMA5D2_XULT_NSEC/board.c b/os/hal/boards/ATSAMA5D2_XULT_NSEC/board.c index 2ab121168..46aec50e4 100644 --- a/os/hal/boards/ATSAMA5D2_XULT_NSEC/board.c +++ b/os/hal/boards/ATSAMA5D2_XULT_NSEC/board.c @@ -89,6 +89,11 @@ static const sama_pio_init_t sama_inits[] = { SAMA_PIN_N(PIOB_URXD0) | SAMA_PIN_N(PIOB_UTXD0),
SAMA_PIO_FUNC_PERIPH_C,
SAMA_PIO_HIGH},
+ /* UART1 */
+ {SAMA_PIOD,
+ SAMA_PIN_N(PIOD_URXD1) | SAMA_PIN_N(PIOD_UTXD1),
+ SAMA_PIO_FUNC_PERIPH_A,
+ SAMA_PIO_HIGH},
/* UART2 */
{SAMA_PIOD,
SAMA_PIN_N(PIOD_URXD2) | SAMA_PIN_N(PIOD_UTXD2),
@@ -147,6 +152,8 @@ void __early_init(void) { void boardInit(void) {
unsigned i;
+ _PIOA->PIO_WPMR = PIO_WPMR_WPKEY_PASSWD;
+
/* Initialize PIO registers for defined pads.*/
i = 0;
while (sama_inits[i].pio_id != -1) {
|