summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorarmink <[email protected]>2017-04-14 13:39:28 +0800
committerarmink <[email protected]>2017-04-14 13:39:28 +0800
commitc8ae11c428fc3a887dd57723d4ab0f925c17d399 (patch)
tree64e4c4453fadd753f472a4e6398cf3ff365e980d /components
parentbe18a1d0e7a571a6a8a728551512f5acb630cf38 (diff)
[Modbus] Add KConfig for Modbus.
Diffstat (limited to 'components')
-rw-r--r--components/net/KConfig2
-rw-r--r--components/net/freemodbus/KConfig17
2 files changed, 19 insertions, 0 deletions
diff --git a/components/net/KConfig b/components/net/KConfig
index d6c2c2101a..5b9c46a4be 100644
--- a/components/net/KConfig
+++ b/components/net/KConfig
@@ -122,4 +122,6 @@ config RT_USING_LWIP
endmenu
+source "$RTT_DIR/components/net/freemodbus/KConfig"
+
endmenu
diff --git a/components/net/freemodbus/KConfig b/components/net/freemodbus/KConfig
new file mode 100644
index 0000000000..9321c61a0e
--- /dev/null
+++ b/components/net/freemodbus/KConfig
@@ -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