nuttx-apps/examples/nxmbserver/Kconfig
raiden00pl 773f69d5d9 modbus: add nxmodbus
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>
2026-04-20 12:45:17 -03:00

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