Commit aee388ae authored by Jamie McCrae's avatar Jamie McCrae Committed by Dominik Ermel
Browse files

zephyr: serial_recovery: Fix confusing/wrong Kconfig values



Fixes some confusing Kconfig values to have values that make
sense for the underlying SMP transport.

Signed-off-by: default avatarJamie McCrae <jamie.mccrae@nordicsemi.no>
parent cde36392
Loading
Loading
Loading
Loading
+14 −9
Original line number Diff line number Diff line
@@ -61,23 +61,28 @@ config BOOT_SERIAL_UNALIGNED_BUFFER_SIZE

config BOOT_MAX_LINE_INPUT_LEN
	int "Maximum input line length"
	default 512
	default 128
	help
	  Maximum length of input serial port buffer.

config BOOT_SERIAL_MAX_RECEIVE_SIZE
	int "Maximum command line length"
	default 1024
	help
	  Maximum length of received commands via the serial port.
	  Maximum length of input serial port buffer (SMP serial transport uses
	  fragments of 128-bytes, this should not need to be changed unless a
	  different value is used for the transport).

config BOOT_LINE_BUFS
	int "Number of receive buffers"
	range 2 128
	default 2
	default 8
	help
	  Number of receive buffers for data received via the serial port.

config BOOT_SERIAL_MAX_RECEIVE_SIZE
	int "Maximum command line length"
	default 1024
	help
	  Maximum length of received commands via the serial port (this should
	  be equal to the maximum line length, BOOT_MAX_LINE_INPUT_LEN times
	  by the number of receive buffers, BOOT_LINE_BUFS to allow for
	  optimal data transfer speeds).

config BOOT_SERIAL_DETECT_PORT
	string "GPIO device to trigger serial recovery mode (DEPRECATED)"
	default GPIO_0 if SOC_FAMILY_NRF