2019-02-02 15:17:36 +01:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
|
|
#
|
|
|
|
|
|
|
|
config EXAMPLES_MODBUSMASTER
|
2019-10-06 14:14:39 +02:00
|
|
|
tristate "Modbus Master example"
|
2019-02-02 15:17:36 +01:00
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable the Modbus Master example
|
|
|
|
|
|
|
|
if EXAMPLES_MODBUSMASTER
|
|
|
|
|
|
|
|
config EXAMPLES_MODBUSMASTER_PROGNAME
|
|
|
|
string "Program name"
|
|
|
|
default "modbusmaster"
|
|
|
|
---help---
|
2019-08-23 19:59:28 +02:00
|
|
|
This is the name of the program that will be used when the NSH ELF
|
2019-02-02 15:17:36 +01:00
|
|
|
program is installed.
|
|
|
|
|
|
|
|
config EXAMPLES_MODBUSMASTER_PRIORITY
|
|
|
|
int "Modbus Master task priority"
|
|
|
|
default 100
|
|
|
|
|
|
|
|
config EXAMPLES_MODBUSMASTER_STACKSIZE
|
|
|
|
int "Modbus Master stack size"
|
2020-03-27 06:10:33 +01:00
|
|
|
default DEFAULT_TASK_STACKSIZE
|
2019-02-02 15:17:36 +01:00
|
|
|
|
|
|
|
config EXAMPLES_MODBUSMASTER_PORT
|
|
|
|
int "Modbus Master port (1 for /dev/ttyS1)"
|
|
|
|
default 1
|
|
|
|
---help---
|
|
|
|
Choose Modbus master communications port. 0 corresponds
|
|
|
|
/dev/ttyS0, 1 -- /dev/ttyS1, etc.
|
|
|
|
|
|
|
|
config EXAMPLES_MODBUSMASTER_BAUDRATE
|
|
|
|
int "Modbus Master port Baudrate"
|
|
|
|
default 38400
|
|
|
|
---help---
|
|
|
|
Choose modbus master serial port baudrate.
|
|
|
|
|
|
|
|
config EXAMPLES_MODBUSMASTER_PARITY
|
|
|
|
int "Modbus Master port Parity"
|
|
|
|
default 2
|
|
|
|
---help---
|
|
|
|
Choose Modbus master serial port parity.
|
|
|
|
0 = NONE ; 1 = ODD; 2 = EVEN
|
|
|
|
|
|
|
|
config EXAMPLES_MODBUSMASTER_SLAVEADDR
|
2019-10-06 05:37:19 +02:00
|
|
|
int "Modbus Slave Address (master will query this slave)"
|
2019-02-02 15:17:36 +01:00
|
|
|
default 1
|
|
|
|
|
|
|
|
config EXAMPLES_MODBUSMASTER_SLAVEREG
|
2019-10-06 05:37:19 +02:00
|
|
|
int "Modbus Slave Holding Register address to query"
|
2019-02-02 15:17:36 +01:00
|
|
|
default 1
|
|
|
|
|
|
|
|
config EXAMPLES_MODBUSMASTER_TESTCOUNT
|
|
|
|
int "Reads count to perform"
|
|
|
|
default 100
|
|
|
|
|
|
|
|
endif
|