添加rtthread相关代码

This commit is contained in:
2025-06-13 14:38:32 +08:00
parent caf2d9f0c5
commit 160f9f8201
1809 changed files with 648100 additions and 10 deletions

View File

@@ -0,0 +1,19 @@
# SConscript for sensor framework
from building import *
import os
src = []
if GetDepend('RT_USING_SENSOR_V2'):
src += [os.path.join('v2', 'sensor.c')]
if GetDepend('RT_USING_SENSOR_CMD'):
src += [os.path.join('v2', 'sensor_cmd.c')]
else:
src += [os.path.join('v1', 'sensor.c')]
if GetDepend('RT_USING_SENSOR_CMD'):
src += [os.path.join('v1', 'sensor_cmd.c')]
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_SENSOR'])
Return('group')