summaryrefslogtreecommitdiff
path: root/nuttx/configs/lpc4330-xplorer/nsh/defconfig
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-07-22 18:56:50 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-07-22 18:56:50 +0000
commit92ee042ea3f2cd97bcca3f1d752ec68dac919d85 (patch)
tree3031e9ab44fcd5d158aa160ee01517a0eb409a94 /nuttx/configs/lpc4330-xplorer/nsh/defconfig
parent60375dcc5d9c24b5919f66f63ac70879e653c350 (diff)
downloadpx4-nuttx-92ee042ea3f2cd97bcca3f1d752ec68dac919d85.tar.gz
px4-nuttx-92ee042ea3f2cd97bcca3f1d752ec68dac919d85.tar.bz2
px4-nuttx-92ee042ea3f2cd97bcca3f1d752ec68dac919d85.zip
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
Diffstat (limited to 'nuttx/configs/lpc4330-xplorer/nsh/defconfig')
-rw-r--r--nuttx/configs/lpc4330-xplorer/nsh/defconfig20
1 files changed, 20 insertions, 0 deletions
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
@@ -1090,6 +1095,21 @@ 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
#
# CONFIG_EXAMPLES_USBSERIAL_INONLY