Commit df8e974c authored by Jared Wolff's avatar Jared Wolff Committed by Andrzej Puzdrowski
Browse files

boot: zephyr: adding indication LED and detect pin debounce



Setting LED to initial level before beginning.
Making comment about BOOT_SERIAL_DETECT_DELAY more clear in Kconfig.

Signed-off-by: default avatarJared Wolff <hello@jaredwolff.com>
parent 8e4d7918
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -475,7 +475,7 @@ config BOOT_SERIAL_DETECT_PIN_VAL
	  mode.

config BOOT_SERIAL_DETECT_DELAY
	int "Prevents immediate boot into MCUBoot firmware."
	int "Serial detect pin detection delay time [ms]"
	default 0
	help
	  Used to prevent the bootloader from loading on button press.
+2 −2
Original line number Diff line number Diff line
@@ -137,13 +137,13 @@ void led_init(void)
{
    
  led = device_get_binding(LED0_GPIO_LABEL);
  if (led == NULL)
  {
  if (led == NULL) {
    BOOT_LOG_ERR("Didn't find LED device %s\n", LED0_GPIO_LABEL);
    return;
  }

  gpio_pin_configure(led, LED0_GPIO_PIN, LED0_GPIO_FLAGS);
  gpio_pin_set(led, LED0_GPIO_PIN, 0);

}
#endif