From dd2a518881f975583ae0ae018c9479ab61392a7c Mon Sep 17 00:00:00 2001 From: Jerzy Kasenberg Date: Thu, 23 Sep 2021 11:51:41 +0200 Subject: [PATCH] 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. --- hw/bsp/da1469x_dk_pro/da1469x-dk-pro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/bsp/da1469x_dk_pro/da1469x-dk-pro.c b/hw/bsp/da1469x_dk_pro/da1469x-dk-pro.c index 2b6931e4..0441c000 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);