APP_Framework/Framework/:add voice sensor in framework,and update the d124.c file

This commit is contained in:
chunyexixiaoyu 2021-09-24 16:18:39 +08:00
parent d7cb0876f6
commit d7e29f19cc
3 changed files with 25 additions and 1 deletions

View File

@ -0,0 +1,14 @@
import os
Import('RTT_ROOT')
from building import *
cwd = GetCurrentDir()
objs = []
list = os.listdir(cwd)
for d in list:
path = os.path.join(cwd, d)
if os.path.isfile(os.path.join(path, 'SConscript')):
objs = objs + SConscript(os.path.join(path, 'SConscript'))
Return('objs')

View File

@ -0,0 +1,10 @@
from building import *
import os
cwd = GetCurrentDir()
src = []
if GetDepend(['SENSOR_D124']):
src += ['d124.c']
group = DefineGroup('sensor voice d124', src, depend = [], CPPPATH = [cwd])
Return('group')

View File

@ -21,7 +21,7 @@
#include <sensor.h>
static struct SensorDevice d124;
static int32_t active_task_id;
static pthread_t active_task_id;
static pthread_mutex_t buff_lock;
static struct SensorProductInfo info =