mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-06-24 00:21:05 +08:00
[Modbus] Add KConfig for Modbus.
This commit is contained in:
@@ -122,4 +122,6 @@ config RT_USING_LWIP
|
||||
|
||||
endmenu
|
||||
|
||||
source "$RTT_DIR/components/net/freemodbus/KConfig"
|
||||
|
||||
endmenu
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
menu "Modbus master and slave stack"
|
||||
|
||||
config RT_USING_MODBUS
|
||||
bool "Enable Modbus stack"
|
||||
default n
|
||||
|
||||
if RT_USING_MODBUS
|
||||
config RT_MODBUS_MASTER_RTU
|
||||
bool "RTU master mode"
|
||||
default n
|
||||
|
||||
config RT_MODBUS_SLAVE_RTU
|
||||
bool "RTU slave mode"
|
||||
default n
|
||||
endif
|
||||
|
||||
endmenu
|
||||
Reference in New Issue
Block a user