summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerzy Kasenberg <[email protected]>2021-09-23 11:51:41 +0200
committerJerzy Kasenberg <[email protected]>2021-09-23 12:00:28 +0200
commitdd2a518881f975583ae0ae018c9479ab61392a7c (patch)
treed0a37a437c92ac7ee5d7483eca3ad28147de3f5d
parent4766e7f3481434bdc6c3b29c402ccd56d4b3a216 (diff)
da1469x_dk_pro: Fix button setup
Button on board has 1k resistor to ground when pressed. When not pressed pin 6 is floating. This forces MCU pull-up for this pin for correct behavior.
-rw-r--r--hw/bsp/da1469x_dk_pro/da1469x-dk-pro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/bsp/da1469x_dk_pro/da1469x-dk-pro.c b/hw/bsp/da1469x_dk_pro/da1469x-dk-pro.c
index 2b6931e4e..0441c000c 100644
--- a/hw/bsp/da1469x_dk_pro/da1469x-dk-pro.c
+++ b/hw/bsp/da1469x_dk_pro/da1469x-dk-pro.c
@@ -80,7 +80,7 @@ void board_init(void)
hal_gpio_init_out(5, 0);
// Button
- hal_gpio_init_in(BUTTON_PIN, HAL_GPIO_PULL_NONE);
+ hal_gpio_init_in(BUTTON_PIN, HAL_GPIO_PULL_UP);
// 1ms tick timer
SysTick_Config(SystemCoreClock / 1000);