project:cfg:BoardConfig_IPC: Added fastboot BoardConfig file and firmware post-scripts, distinguishing between the BoardConfigs for Luckfox Pico Pro and Luckfox Pico Max. project:app: Added fastboot_client and rk_smart_door for quick boot applications; updated rkipc app to adapt to the latest media library. media:samples: Added more usage examples. media:rockit: Fixed bugs; removed support for retrieving data frames from VPSS. media:isp: Updated rkaiq library and related tools to support connection to RKISP_Tuner. sysdrv:Makefile: Added support for compiling drv_ko on Luckfox Pico Ultra W using Ubuntu; added support for custom root filesystem. sysdrv:tools:board: Updated Buildroot optional mirror sources, updated some software versions, and stored device tree files and configuration files that undergo multiple modifications for U-Boot and kernel separately. sysdrv:source:mcu: Used RISC-V MCU SDK with RT-Thread system, mainly for initializing camera AE during quick boot. sysdrv:source:uboot: Added support for fastboot; added high baud rate DDR bin for serial firmware upgrades. sysdrv:source:kernel: Upgraded to version 5.10.160; increased NPU frequency for RV1106G3; added support for fastboot. Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
78 lines
1.7 KiB
Python
78 lines
1.7 KiB
Python
Import('RTT_ROOT')
|
|
from building import *
|
|
|
|
src = Split("""
|
|
modbus/functions/mbfuncdiag.c
|
|
modbus/functions/mbutils.c
|
|
modbus/functions/mbfuncother.c
|
|
modbus/rtu/mbcrc.c
|
|
port/port.c
|
|
""")
|
|
|
|
master_rtu_src = Split("""
|
|
modbus/functions/mbfunccoils_m.c
|
|
modbus/functions/mbfuncdisc_m.c
|
|
modbus/functions/mbfuncholding_m.c
|
|
modbus/functions/mbfuncinput_m.c
|
|
modbus/rtu/mbrtu_m.c
|
|
modbus/mb_m.c
|
|
port/portevent_m.c
|
|
port/portserial_m.c
|
|
port/porttimer_m.c
|
|
port/user_mb_app_m.c
|
|
""")
|
|
|
|
slave_rtu_src = Split("""
|
|
modbus/functions/mbfunccoils.c
|
|
modbus/functions/mbfuncdisc.c
|
|
modbus/functions/mbfuncholding.c
|
|
modbus/functions/mbfuncinput.c
|
|
modbus/rtu/mbrtu.c
|
|
modbus/mb.c
|
|
port/portevent.c
|
|
port/portserial.c
|
|
port/porttimer.c
|
|
port/user_mb_app.c
|
|
""")
|
|
|
|
master_slave_rtu_src = Split("""
|
|
modbus/functions/mbfunccoils.c
|
|
modbus/functions/mbfunccoils_m.c
|
|
modbus/functions/mbfuncdisc.c
|
|
modbus/functions/mbfuncdisc_m.c
|
|
modbus/functions/mbfuncholding.c
|
|
modbus/functions/mbfuncholding_m.c
|
|
modbus/functions/mbfuncinput.c
|
|
modbus/functions/mbfuncinput_m.c
|
|
modbus/rtu/mbrtu.c
|
|
modbus/rtu/mbrtu_m.c
|
|
modbus/mb.c
|
|
modbus/mb_m.c
|
|
port/portevent.c
|
|
port/portevent_m.c
|
|
port/portserial.c
|
|
port/portserial_m.c
|
|
port/porttimer.c
|
|
port/porttimer_m.c
|
|
port/user_mb_app.c
|
|
port/user_mb_app_m.c
|
|
""")
|
|
|
|
# The set of source files associated with this SConscript file.
|
|
path = [GetCurrentDir() + '/modbus/include',
|
|
GetCurrentDir() + '/modbus/rtu',
|
|
GetCurrentDir() + '/port']
|
|
|
|
if GetDepend(['RT_MODBUS_MASTER_RTU']):
|
|
src += master_rtu_src
|
|
|
|
if GetDepend(['RT_MODBUS_SLAVE_RTU']):
|
|
src += slave_rtu_src
|
|
|
|
if GetDepend(['RT_MODBUS_MASTER_SLAVE_RTU']):
|
|
src += master_slave_rtu_src
|
|
|
|
group = DefineGroup('FreeModbus', src, depend = ['RT_USING_MODBUS'], CPPPATH = path)
|
|
|
|
Return('group')
|