mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
NxModbus is a lightweight Modbus protocol stack implementation for NuttX RTOS. This commit adds: - nxmodbus stack - nxmbserver - Modbus Server (Slave) example - nxmbclient - Modbus Client (Master) tool Supported Modbus transports: - ASCII - RTU over serial port - TCP - RAW (ADU) for custom transport implementations Signed-off-by: raiden00pl <raiden00@railab.me>
33 lines
891 B
Text
33 lines
891 B
Text
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
config EXAMPLES_NXMBSERVER
|
|
tristate "NxModbus Server Example"
|
|
default n
|
|
depends on NXMODBUS_SERVER
|
|
---help---
|
|
Enable the NxModbus server example. This example demonstrates
|
|
how to create a Modbus server (slave) that responds to client
|
|
requests. Supports RTU, ASCII, and TCP transports with simulated
|
|
register data.
|
|
|
|
if EXAMPLES_NXMBSERVER
|
|
|
|
config EXAMPLES_NXMBSERVER_PROGNAME
|
|
string "Program name"
|
|
default "nxmbserver"
|
|
---help---
|
|
This is the name of the program that will be used when the NSH ELF
|
|
program is installed.
|
|
|
|
config EXAMPLES_NXMBSERVER_PRIORITY
|
|
int "NxModbus server task priority"
|
|
default 100
|
|
|
|
config EXAMPLES_NXMBSERVER_STACKSIZE
|
|
int "NxModbus server stack size"
|
|
default DEFAULT_TASK_STACKSIZE
|
|
|
|
endif # EXAMPLES_NXMBSERVER
|