Skip to content

Commit f990358

Browse files
authored
重构第一步:将kws文件移动到kws文件夹下,默认开启唤醒功能 (#112)
* 新增加了控制打断和唤醒的接口,给MCP加上了这些功能 * 将kws的文件移动到kws的文件夹下。默认开启唤醒功能
1 parent 4958634 commit f990358

21 files changed

+7
-6
lines changed

app/src/SConscript

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ CPPDEFINES += ['MBEDTLS_PLATFORM_MEMORY']
1818

1919
cwd = GetCurrentDir()
2020
CPPPATH = [cwd]
21-
libpath = [cwd]
22-
CPPPATH += [cwd + '/et_config']
21+
libpath = [cwd + '/kws']
22+
CPPPATH += [cwd + '/kws']
2323
# Add source code
2424
src = Glob('*.c')
2525
src = src + Glob('./mcp/*.cc')
26-
src = src + Glob('./iot/*.cc')
26+
src = src + Glob('./iot/*.cc')
27+
src = src + Glob('./kws/*.c')
2728
#SrcRemove(src, 'xiaozhi.c')
2829

2930
group = DefineGroup('Applications', src, depend = [''], CPPDEFINES = CPPDEFINES,
File renamed without changes.

app/src/bsp_et_asr_ctrl.c renamed to app/src/kws/bsp_et_asr_ctrl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "et_keyword.h"
1616
#include "et_thres_list.h"
1717
#include "et_weights.h"
18-
#include "et_config/third_kws_event.h"
18+
#include "third_kws_event.h"
1919
#include "xiaozhi_public.h"
2020
extern void simulate_button_pressed();
2121

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)