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/include | |
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/include')
-rw-r--r-- | apps/include/zmodem.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/apps/include/zmodem.h b/apps/include/zmodem.h index bc85ba0a1..64951a7b8 100644 --- a/apps/include/zmodem.h +++ b/apps/include/zmodem.h @@ -147,6 +147,23 @@ # define CONFIG_SYSTEM_ZMODEM_MAXERRORS 20 #endif +/* 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. + */ + +#ifndef CONFIG_SYSTEM_ZMODEM_WRITESIZE +# define CONFIG_SYSTEM_ZMODEM_WRITESIZE 0 +#endif + +/* Absolute pathes in received file names are not accepted. This + * configuration value must be set to provide the path to the file storage + * directory (such as a mountpoint directory). + * + * Names of file send by the sz commond, on the other hand, must be absolute + * paths beginning with '/'. + */ + #ifndef CONFIG_SYSTEM_ZMODEM_MOUNTPOINT # define CONFIG_SYSTEM_ZMODEM_MOUNTPOINT "/tmp" #endif @@ -314,23 +331,6 @@ int zms_send(ZMSHANDLE handle, FAR const char *filename, int zms_release(ZMSHANDLE handle); -/**************************************************************************** - * Name: zms_hwflowcontrol - * - * Description: - * If CONFIG_SYSTEM_ZMODEM_FULLSTREAMING is defined, then the system - * must provide the following interface in order to enable/disable hardware - * flow control on the device used to communicate with the remote peer. - * - * Returned Value: - * Zero on success; a negated errno value on failure. - * - ****************************************************************************/ - -#ifdef CONFIG_SYSTEM_ZMODEM_FULLSTREAMING -int zms_hwflowcontrol(int remfd, bool enable); -#endif - #undef EXTERN #if defined(__cplusplus) } |