提交 3462537b 编写于 作者: B Bernard Xiong

[DeviceDrivers] Update SConcript file for sensor code

上级 87cc28fb
...@@ -6,10 +6,10 @@ cwd = GetCurrentDir() ...@@ -6,10 +6,10 @@ cwd = GetCurrentDir()
src = ['sensor.cpp'] src = ['sensor.cpp']
CPPPATH = [cwd, cwd + '/../include'] CPPPATH = [cwd, cwd + '/../include']
if GetDepend('SENSOR_USING_MPU6050'): if GetDepend('SENSOR_USING_MPU6050') and GetDepend('RT_USING_I2C'):
src += ['mpu6050_sensor.cpp']; src += ['mpu6050_sensor.cpp'];
if GetDepend('SENSOR_USING_BMI055'): if GetDepend('SENSOR_USING_BMI055') and GetDepend('RT_USING_I2C'):
src += ['bmi055_sensor.cpp'] src += ['bmi055_sensor.cpp']
group = DefineGroup('Sensors', src, depend = ['RT_USING_SENSOR', 'RT_USING_DEVICE'], CPPPATH = CPPPATH) group = DefineGroup('Sensors', src, depend = ['RT_USING_SENSOR', 'RT_USING_DEVICE'], CPPPATH = CPPPATH)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册