1menu "Modbus master and slave stack" 2 3config RT_USING_MODBUS 4 bool "Enable Modbus stack" 5 default n 6 7 if RT_USING_MODBUS 8 config RT_MODBUS_MASTER_RTU 9 bool "RTU master mode" 10 default n 11 12 config RT_MODBUS_SLAVE_RTU 13 bool "RTU slave mode" 14 default n 15 if RT_MODBUS_SLAVE_RTU 16 config RT_MODBUS_SLAVE_USE_CONTROL_PIN 17 bool "Use Contorl Pin" 18 default n 19 if RT_MODBUS_SLAVE_USE_CONTROL_PIN 20 config MODBUS_SLAVE_RT_CONTROL_PIN_INDEX 21 int "pin index for RS485 TX/RX select" 22 default 10 23 endif 24 endif 25 endif 26 27endmenu 28