aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/boards/ATSAMA5D2_XULT/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/boards/ATSAMA5D2_XULT/board.c')
-rw-r--r--os/hal/boards/ATSAMA5D2_XULT/board.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/os/hal/boards/ATSAMA5D2_XULT/board.c b/os/hal/boards/ATSAMA5D2_XULT/board.c
index 594d67beb..82c4f6de3 100644
--- a/os/hal/boards/ATSAMA5D2_XULT/board.c
+++ b/os/hal/boards/ATSAMA5D2_XULT/board.c
@@ -78,6 +78,10 @@ static const sama_pio_init_t sama_inits[] = {
SAMA_PIN_N(PIOB_LED_RED),
SAMA_PIO_FUNC_GPIO | SAMA_PIO_DIR_OUTPUT | SAMA_PIO_DRVSTR_HI,
SAMA_PIO_HIGH},
+ {SAMA_PIOB,
+ SAMA_PIN_N(PIOB_USER_PB),
+ SAMA_PIO_FUNC_GPIO | SAMA_PIO_DIR_INPUT | SAMA_PIO_PUEN | SAMA_PIO_SCHMITT,
+ SAMA_PIO_HIGH},
{-1, 0, 0, 0}
};