diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-07-15 12:33:35 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-07-15 12:33:35 -0600 |
commit | 2ec900deababd3ae9be28e9673764866f1a72fbc (patch) | |
tree | 6835def94c0cd3ce2fcd70f1bea1e53ec9acf428 /apps/system/zmodem/Kconfig | |
parent | a9ac8ee92de976a5450e3a060a561e22094f4d60 (diff) | |
download | nuttx-2ec900deababd3ae9be28e9673764866f1a72fbc.tar.gz nuttx-2ec900deababd3ae9be28e9673764866f1a72fbc.tar.bz2 nuttx-2ec900deababd3ae9be28e9673764866f1a72fbc.zip |
Partial fixes for Zmodem RX buffering problems.
Diffstat (limited to 'apps/system/zmodem/Kconfig')
-rw-r--r-- | apps/system/zmodem/Kconfig | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/apps/system/zmodem/Kconfig b/apps/system/zmodem/Kconfig index 7d84d1812..aa6da18e2 100644 --- a/apps/system/zmodem/Kconfig +++ b/apps/system/zmodem/Kconfig @@ -9,15 +9,23 @@ config SYSTEM_ZMODEM ---help--- This selection enables the 'sz' and 'rz' NSH commands. + NOTE: Hardware flow control is required on the selected device in + order to throttle the rates of data transfer to fit within the + allocated buffers. This cannot be checked here in the configuration + because the device that you use may be selected at runtime. + if SYSTEM_ZMODEM config SYSTEM_ZMODEM_DEVNAME string "Default Zmodem device" default "/dev/console" - ---help-- + ---help--- The default device used by the Zmodem commands if the -d option is not provided on the sz or rz command line. Default: "/dev/console". + NOTE: This device *MUST* support Hardware flow control in order to + throttle the rates of data transfer to fit within the allocated buffers. + config SYSTEM_ZMODEM_RCVBUFSIZE int "Receive buffer size" default 512 @@ -128,6 +136,14 @@ config SYSTEM_ZMODEM_MAXERRORS ---help--- Max receive errors before canceling the transfer. +config SYSTEM_ZMODEM_WRITESIZE + int "Write size limit" + default 0 + ---help--- + Some MMC/SD drivers may fail if large transfers are attempted. + As a bug workaround, you can set the maximum write size with + this configuration. The default value of 0 means no write limit. + config DEBUG_ZMODEM bool "Zmodem debug" default n |