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.
This commit is contained in:
Jerzy Kasenberg 2021-09-23 11:51:41 +02:00
parent 4766e7f348
commit dd2a518881
1 changed files with 1 additions and 1 deletions

View File

@ -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);