APP_Framework/Applications/:add SConscript in sensor_app ,fix header file in voice_d124.c.
This commit is contained in:
parent
d7e29f19cc
commit
51d3a8ab41
|
@ -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")
|
|
@ -18,7 +18,7 @@
|
||||||
* @date 2021.04.23
|
* @date 2021.04.23
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <user_api.h>
|
#include <transform.h>
|
||||||
#include <sensor.h>
|
#include <sensor.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue