Skip to content

Commit

Permalink
zephyr: serial_recovery: Fix confusing/wrong Kconfig values
Browse files Browse the repository at this point in the history
Fixes some confusing Kconfig values to have values that make
sense for the underlying SMP transport.

Signed-off-by: Jamie McCrae <[email protected]>
  • Loading branch information
nordicjm authored and de-nordic committed Feb 17, 2023
1 parent cde3639 commit aee388a
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions boot/zephyr/Kconfig.serial_recovery
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aee388a

Please sign in to comment.