OVMS3-idf/components/freemodbus/CMakeLists.txt
Alex Lisitsyn f0eb9985b9 examples: freemodbus port slave basic implementation
This example adds functionality to support basic communication in RS485 networks using Modbus protocol.
This example uses FreeModbus stack and regular UART driver API to communicate in RS485 half duplex mode.
Added initial support of modbus controller pure C api to access device parameters over Modbus transport.
Move freemodbus stack and port files into components folder
Move the modbus_controller interface into components idf folder
Source files updated after review.
Add modbus interface documentation docs/en/api-reference/protocols/modbus.rst
porttimer.c: fix bug with timer1 selected in the Kconfig
Add support of cmake system (added cmake files)

Closes https://github.com/espressif/esp-idf/issues/858
2018-10-17 12:47:12 +02:00

26 lines
1.1 KiB
CMake

# The following five lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
set(COMPONENT_SRCS "modbus/ascii/mbascii.c"
"modbus/rtu/mbcrc.c"
"modbus/functions/mbfunccoils.c"
"modbus/functions/mbfuncdiag.c"
"modbus/functions/mbfuncdisc.c"
"modbus/functions/mbfuncholding.c"
"modbus/functions/mbfuncinput.c"
"modbus/functions/mbfuncother.c"
"modbus/rtu/mbrtu.c"
"modbus/tcp/mbtcp.c"
"modbus/functions/mbutils.c"
"port/portevent.c"
"port/portother.c"
"port/portserial.c"
"port/porttimer.c"
"modbus_controller/mbcontroller.c"
"modbus/mb.c")
set(COMPONENT_ADD_INCLUDEDIRS modbus/include modbus_controller)
set(COMPONENT_PRIV_INCLUDEDIRS modbus port modbus/ascii modbus/functions modbus/rtu modbus/include)
set(COMPONENT_REQUIRES "driver")
register_component()