Files
luban-lite-t3e-pro/packages/third-party/libmodbus/Kconfig
2025-09-30 11:56:06 +08:00

71 lines
2.0 KiB
Plaintext

# Kconfig file for package libmodbus
menuconfig LPKG_USING_LIBMODBUS
bool "libmodbus: A Modbus library for RT-Thread"
default n
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_POSIX if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100
if LPKG_USING_LIBMODBUS
config LPKG_LIBMODBUS_PATH
string
default "/packages/third-party/libmodbus"
config LPKG_USING_LIBMODBUS_RTU
bool "Enable libmodbus rtu mode"
default n
select RT_USING_POSIX_TERMIOS
select RT_USING_POSIX_SELECT
if LPKG_USING_LIBMODBUS_RTU
config HAVE_DECL_TIOCSRS485
int
default 1
config HAVE_DECL_TIOCM_RTS
int
default 1
config LPKG_USING_LIBMODBUS_RTU_EXAMPLE
bool "Enable rtu example"
default n
endif
config LPKG_USING_LIBMODBUS_TCP
bool "Enable libmodbus tcp mode"
default n
select RT_USING_SAL if RT_VER_NUM < 0x40100
select SAL_USING_POSIX if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100
select RT_USING_POSIX_SOCKET if RT_VER_NUM >= 0x40100
if LPKG_USING_LIBMODBUS_TCP
config LPKG_USING_LIBMODBUS_TCP_EXAMPLE
bool "Enable tcp example"
default n
endif
choice
prompt "Version"
default LPKG_USING_LIBMODBUS_LATEST_VERSION
help
Select the package version
config LPKG_USING_LIBMODBUS_LATEST_VERSION
bool "latest"
endchoice
config LPKG_LIBMODBUS_VER
string
default "v1.0.0" if LPKG_USING_LIBMODBUS_V100
default "latest" if LPKG_USING_LIBMODBUS_LATEST_VERSION
config PKG_LIBMODBUS_VER_NUM
hex
default 0x99999 if LPKG_USING_LIBMODBUS_LATEST_VERSION
default 0x10000 if LPKG_USING_LIBMODBUS_V100
endif