add first version

This commit is contained in:
guozhanxin
2019-02-12 14:09:34 +08:00
parent 821c81e21a
commit 64813b6b07
12 changed files with 988 additions and 2765 deletions
+3 -6
View File
@@ -3,14 +3,11 @@
from building import *
cwd = GetCurrentDir()
src = ['sensor.cpp']
src = ['sensor.c']
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']
if GetDepend('RT_USING_SENSOR_TEST'):
src += ['sensor_test.c'];
group = DefineGroup('Sensors', src, depend = ['RT_USING_SENSOR', 'RT_USING_DEVICE'], CPPPATH = CPPPATH)