Skip to content

Commit 1b1a37f

Browse files
committed
[nrf noup] boot: zephyr: Delay bm IO button check
nrf-squash! [nrf noup] boot: zephyr: Add bm firmware loader code Delays checking IO button state by 5us after pull-up has been applied to allow time for it to be applied Signed-off-by: Jamie McCrae <[email protected]>
1 parent 3adc1f2 commit 1b1a37f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

boot/zephyr/io_bm.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ bool io_detect_pin(void)
9393

9494
nrf_gpio_cfg_input(BOARD_PIN_BTN_0, BM_BUTTONS_PIN_PULLUP);
9595

96+
/* Delay 5 us for pull-up to be applied */
97+
k_busy_wait(5);
98+
9699
pin_active = (bool)nrf_gpio_pin_read(BOARD_PIN_BTN_0);
97100

98101
if (!pin_active) {

0 commit comments

Comments
 (0)