From 92ee042ea3f2cd97bcca3f1d752ec68dac919d85 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 22 Jul 2012 18:56:50 +0000 Subject: Loosen up termios interfaces to allow more flexible baud settings; remove AIX-like interfaces of last check-in git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4969 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/configs/lpc4330-xplorer/nsh/defconfig | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'nuttx/configs/lpc4330-xplorer/nsh/defconfig') diff --git a/nuttx/configs/lpc4330-xplorer/nsh/defconfig b/nuttx/configs/lpc4330-xplorer/nsh/defconfig index 179256e3d..0fc8d93ad 100644 --- a/nuttx/configs/lpc4330-xplorer/nsh/defconfig +++ b/nuttx/configs/lpc4330-xplorer/nsh/defconfig @@ -776,6 +776,10 @@ CONFIG_FTPD_CMDBUFFERSIZE=2048 # CONFIG_MB_ASCII_ENABLED - Modbus ASCII support # CONFIG_MB_RTU_ENABLED - Modbus RTU support # CONFIG_MB_TCP_ENABLED - Modbus TCP support +# CONFIG_MB_TERMIOS - Serial driver supports termios.h interfaces (tcsetattr, +# tcflush, etc.). If this is not defined, then the terminal settings (baud, +# parity, etc.) are not configurable at runtime; serial streams will not be +# flushed when closed. # CONFIG_MB_ASCII_TIMEOUT_SEC - Character timeout value for Modbus ASCII. The # character timeout value is not fixed for Modbus ASCII and is therefore # a configuration option. It should be set to the maximum expected delay @@ -822,6 +826,7 @@ CONFIG_MODBUS=n CONFIG_MB_ASCII_ENABLED=y CONFIG_MB_RTU_ENABLED=y CONFIG_MB_TCP_ENABLED=n +CONFIG_MB_TERMIOS=n CONFIG_MB_ASCII_TIMEOUT_SEC=1 CONFIG_MB_ASCII_TIMEOUT_WAIT_BEFORE_SEND_MS=0 CONFIG_MB_FUNC_HANDLERS_MAX=16 @@ -1089,6 +1094,21 @@ CONFIG_EXAMPLE_IRQBUTTONS_MIN=0 CONFIG_EXAMPLE_IRQBUTTONS_MAX=0 CONFIG_EXAMPLE_BUTTONS_NAME1="SW2" +# +# examples/modbus +# +# CONFIG_EXAMPLES_MODBUS_PORT, Default 0 (for /dev/ttyS0) +# CONFIG_EXAMPLES_MODBUS_BAUD, Default 38400 +# CONFIG_EXAMPLES_MODBUS_PARITY, Default MB_PAR_EVEN +# +# CONFIG_EXAMPLES_MODBUS_REG_INPUT_START, Default 1000 +# CONFIG_EXAMPLES_MODBUS_REG_INPUT_NREGS, Default 4 +# CONFIG_EXAMPLES_MODBUS_REG_HOLDING_START, Default 2000 +# CONFIG_EXAMPLES_MODBUS_REG_HOLDING_NREGS, Default 130 +# +CONFIG_EXAMPLES_MODBUS_PORT=1 +CONFIG_EXAMPLES_MODBUS_BAUD=9600 + # # Settings for examples/usbserial # -- cgit v1.2.3