boot: zephyr: adding indication LED and detect pin debounce
Add LED support and boot delay serial detect pin operation.
Signed-off-by: Jared Wolff <hello@jaredwolff.com>
diff --git a/boot/zephyr/Kconfig b/boot/zephyr/Kconfig
index ef3e834..cfbdd5e 100644
--- a/boot/zephyr/Kconfig
+++ b/boot/zephyr/Kconfig
@@ -435,6 +435,14 @@
endchoice
+config MCUBOOT_INDICATION_LED
+ bool "Turns on LED indication when device is in DFU"
+ default n
+ help
+ Device device activates the LED while in bootloader mode.
+ bootloader-led0 alias must be set in the device's .dts
+ definitions for this to work.
+
config BOOT_MAX_LINE_INPUT_LEN
int "Maximum command line length"
default 512
@@ -466,6 +474,14 @@
Logic value of the detect pin which triggers serial recovery
mode.
+config BOOT_SERIAL_DETECT_DELAY
+ int "Prevents immediate boot into MCUBoot firmware."
+ default 0
+ help
+ Used to prevent the bootloader from loading on button press.
+ Useful for powering on when using the same button as
+ the one used to place the device in bootloader mode.
+
# Workaround for not being able to have commas in macro arguments
DT_CHOSEN_Z_CONSOLE := zephyr,console