mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-29 01:20:19 +00:00
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:
parent
4766e7f348
commit
dd2a518881
@ -80,7 +80,7 @@ void board_init(void)
|
|||||||
hal_gpio_init_out(5, 0);
|
hal_gpio_init_out(5, 0);
|
||||||
|
|
||||||
// Button
|
// Button
|
||||||
hal_gpio_init_in(BUTTON_PIN, HAL_GPIO_PULL_NONE);
|
hal_gpio_init_in(BUTTON_PIN, HAL_GPIO_PULL_UP);
|
||||||
|
|
||||||
// 1ms tick timer
|
// 1ms tick timer
|
||||||
SysTick_Config(SystemCoreClock / 1000);
|
SysTick_Config(SystemCoreClock / 1000);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user