mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-24 05:04:10 +08:00
add first version
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user