Kconfig 767 B

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