apps/modbus: Move modbus to inside industry/

Modbus is a protocol mostly used on industries and since it is a
protocol it is not a category to be at root of apps/

Signed-off-by: Alan C. Assis <acassis@gmail.com>
This commit is contained in:
Alan Carvalho de Assis 2026-04-15 09:44:45 -03:00 committed by simbit18
parent 2ee08209a0
commit 2016c0b6ae
4 changed files with 6 additions and 7 deletions

View file

@ -60,7 +60,6 @@ add_subdirectory(logging)
add_subdirectory(lte)
add_subdirectory(math)
add_subdirectory(mlearning)
add_subdirectory(modbus)
add_subdirectory(netutils)
add_subdirectory(nshlib)
add_subdirectory(platform)

View file

@ -20,4 +20,4 @@
#
############################################################################
include $(wildcard $(APPDIR)/modbus/*/Make.defs)
include $(wildcard $(APPDIR)/industry/modbus/*/Make.defs)

View file

@ -153,17 +153,17 @@ config INDUSTRY_MODBUS_MASTER
config MB_ASCII_MASTER
bool "Modbus ASCII master"
default n
depends on MODBUS_MASTER
depends on INDUSTRY_MODBUS_MASTER
config MB_RTU_MASTER
bool "Modbus RTU master"
default n
depends on MODBUS_MASTER
depends on INDUSTRY_MODBUS_MASTER
config MB_PORT_HAS_CLOSE
bool "Platform close callbacks"
default n
depends on MODBUS_MASTER
depends on INDUSTRY_MODBUS_MASTER
---help---
A port which wants to get an callback must select
CONFIG_MB_HAS_CLOSE and provide vMBMasterPortClose() as
@ -250,7 +250,7 @@ config MB_MASTER_FUNC_READWRITE_HOLDING_ENABLED
If the Read/Write Multiple Registers function should be enabled.
endif # MB_ASCII_MASTER || MB_RTU_MASTER
endif # MODBUS
endif # INDUSTRY_MODBUS
config INDUSTRY_MODBUS_DISABLE_LOG
bool "Disable logging for FreeModBus"

View file

@ -1,5 +1,5 @@
/****************************************************************************
* apps/industry/modbus/ascii/mbascii.c
* apps/industry/modbus/freemodbus/ascii/mbascii.c
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <wolti@sil.at>