From f7d05232954ef5fb329ab696d3a76d9c3d102557 Mon Sep 17 00:00:00 2001 From: Dylan Laduranty Date: Mon, 8 Apr 2024 20:14:12 +0200 Subject: [PATCH] boards/nrf9160dk: enable internal pullup on buttons Signed-off-by: Dylan Laduranty --- boards/nrf9160dk/include/board.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/boards/nrf9160dk/include/board.h b/boards/nrf9160dk/include/board.h index b94fd39984..a9e9fae02a 100644 --- a/boards/nrf9160dk/include/board.h +++ b/boards/nrf9160dk/include/board.h @@ -78,13 +78,13 @@ extern "C" { * @{ */ #define BTN0_PIN GPIO_PIN(0, 6) /**< BTN0 pin definition */ -#define BTN0_MODE GPIO_IN /**< BTN0 default mode */ +#define BTN0_MODE GPIO_IN_PU /**< BTN0 default mode */ #define BTN1_PIN GPIO_PIN(0, 7) /**< BTN1 pin definition */ -#define BTN1_MODE GPIO_IN /**< BTN1 default mode */ +#define BTN1_MODE GPIO_IN_PU /**< BTN1 default mode */ #define BTN2_PIN GPIO_PIN(0, 8) /**< BTN2 pin definition */ -#define BTN2_MODE GPIO_IN /**< BTN2 default mode */ +#define BTN2_MODE GPIO_IN_PU /**< BTN2 default mode */ #define BTN3_PIN GPIO_PIN(0, 9) /**< BTN3 pin definition */ -#define BTN3_MODE GPIO_IN /**< BTN3 default mode */ +#define BTN3_MODE GPIO_IN_PU /**< BTN3 default mode */ /** @} */ /**