Skip to content

Commit 282aa9b

Browse files
committed
Merge remote-tracking branch 'china/master'
2 parents ca18a17 + 94e5d1e commit 282aa9b

File tree

5 files changed

+1455
-2
lines changed

5 files changed

+1455
-2
lines changed

components/drivers/sensors/SConscript

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@
33
from building import *
44

55
cwd = GetCurrentDir()
6-
src = Glob('*.c') + Glob('*.cpp')
6+
src = ['sensor.cpp']
77
CPPPATH = [cwd, cwd + '/../include']
88

9+
if GetDepend('SENSOR_USING_MPU6050'):
10+
src += ['mpu6050_sensor.cpp'];
11+
12+
if GetDepend('SENSOR_USING_BMI055'):
13+
src += ['bmi055_sensor.cpp']
14+
915
group = DefineGroup('Sensors', src, depend = ['RT_USING_SENSOR', 'RT_USING_DEVICE'], CPPPATH = CPPPATH)
1016

1117
Return('group')
12-

0 commit comments

Comments
 (0)