Skip to content

Commit 5620a10

Browse files
committed
Merge pull request #425 from BernardXiong/master
[DeviceDrivers] Add more sensor drivers.
2 parents 1158fba + 3462537 commit 5620a10

File tree

5 files changed

+1455
-2
lines changed

5 files changed

+1455
-2
lines changed

components/drivers/sensors/SConscript

+7-2
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') and GetDepend('RT_USING_I2C'):
10+
src += ['mpu6050_sensor.cpp'];
11+
12+
if GetDepend('SENSOR_USING_BMI055') and GetDepend('RT_USING_I2C'):
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)