Add serial adapter module for support serial communication for zephyr
Serial adapter uses the zephyr UART driver in interrupt mode for
providing communication capabilities needed for the boot serial
recovery mode.
This module provide API similar to mynewt console module.
Serial adapter module can not be compiled along with
the zephyr uart console module so this case is checked.
Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
diff --git a/Kconfig b/Kconfig
index 4127dc7..bcf196b 100644
--- a/Kconfig
+++ b/Kconfig
@@ -16,9 +16,18 @@
prompt "MCUBOOT serial recovery"
default n
select REBOOT
+ select UART_INTERRUPT_DRIVEN
+ select SERIAL
help
Enable serial recovery feature in mcuboot.
+config BOOT_MAX_LINE_INPUT_LEN
+ int "cmd line max length"
+ default 512
+ depends on MCUBOOT_SERIAL
+ help
+ Maximum length of commands transported over the serial protocol
+
config BOOT_SERIAL_DETECT_PORT
string
prompt "GPIO Port to trigger serial recovery mode"