Skip to content

Commit

Permalink
Merge pull request #425 from BernardXiong/master
Browse files Browse the repository at this point in the history
[DeviceDrivers] Add more sensor drivers.
  • Loading branch information
BernardXiong committed Feb 2, 2015
2 parents 1158fba + 3462537 commit 5620a10
Show file tree
Hide file tree
Showing 5 changed files with 1,455 additions and 2 deletions.
9 changes: 7 additions & 2 deletions components/drivers/sensors/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@
from building import *

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

if GetDepend('SENSOR_USING_MPU6050') and GetDepend('RT_USING_I2C'):
src += ['mpu6050_sensor.cpp'];

if GetDepend('SENSOR_USING_BMI055') and GetDepend('RT_USING_I2C'):
src += ['bmi055_sensor.cpp']

group = DefineGroup('Sensors', src, depend = ['RT_USING_SENSOR', 'RT_USING_DEVICE'], CPPPATH = CPPPATH)

Return('group')

0 comments on commit 5620a10

Please sign in to comment.