From 51d3a8ab41d782f60b90b71e2d56af82670a3f9d Mon Sep 17 00:00:00 2001 From: chunyexixiaoyu <834670833@qq.com> Date: Fri, 24 Sep 2021 16:28:22 +0800 Subject: [PATCH] APP_Framework/Applications/:add SConscript in sensor_app ,fix header file in voice_d124.c. --- .../Applications/sensor_app/SConscript | 20 +++++++++++++++++++ .../Applications/sensor_app/voice_d124.c | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 APP_Framework/Applications/sensor_app/SConscript diff --git a/APP_Framework/Applications/sensor_app/SConscript b/APP_Framework/Applications/sensor_app/SConscript new file mode 100644 index 000000000..58ec915b4 --- /dev/null +++ b/APP_Framework/Applications/sensor_app/SConscript @@ -0,0 +1,20 @@ +import os +from building import * +Import('RTT_ROOT') +Import('rtconfig') +cwd = GetCurrentDir() +DEPENDS = ["SUPPORT_SENSOR_FRAMEWORK"] +SOURCES = [] +if GetDepend(['APPLICATION_SENSOR_CO2_ZG09']): + SOURCES = ['co2_zg09.c'] + SOURCES +if GetDepend(['APPLICATION_SENSOR_PM1_0_PS5308']): + SOURCES = ['pm1_0_ps5308.c.c'] + SOURCES +if GetDepend(['APPLICATION_SENSOR_VOICE_D124']): + SOURCES = ['voice_d124.c'] + SOURCES +if GetDepend(['APPLICATION_SENSOR_HUMIDITY_HS300X']): + SOURCES = ['humidity_hs300x.c'] + SOURCES +if GetDepend(['APPLICATION_SENSOR_TEMPERATURE_HS300X']): + SOURCES = ['temperature_hs300x.c'] + SOURCES +path = [cwd] +objs = DefineGroup('sensor_app', src = SOURCES, depend = DEPENDS,CPPPATH = path) +Return("objs") \ No newline at end of file diff --git a/APP_Framework/Applications/sensor_app/voice_d124.c b/APP_Framework/Applications/sensor_app/voice_d124.c index 21569405e..b86bf2360 100644 --- a/APP_Framework/Applications/sensor_app/voice_d124.c +++ b/APP_Framework/Applications/sensor_app/voice_d124.c @@ -18,7 +18,7 @@ * @date 2021.04.23 */ -#include +#include #include /**