5d79f88918
2. 进一步修改了语音识别,关闭了关键词唤醒功能,只保留了指令识别功能 3. 构建了业务层的基本框架(增加了底层驱动对于的C++兼容),业务代码采用C++编写,启用了RTTI(运行时类型识别)
27 lines
578 B
C
27 lines
578 B
C
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
#include "ST77916.h"
|
|
|
|
#define PWR_KEY_Input_PIN 6 // 电源按键输入引脚(GPIO6)
|
|
#define PWR_Control_PIN 7 // 电源控制输出引脚(GPIO7)
|
|
|
|
#define Device_Sleep_Time 10 // 进入睡眠模式的按键时长阈值
|
|
#define Device_Restart_Time 15 // 重启设备的按键时长阈值
|
|
#define Device_Shutdown_Time 20 // 关机操作的按键时长阈值
|
|
|
|
void Fall_Asleep(void);
|
|
void Shutdown(void);
|
|
void Restart(void);
|
|
|
|
void PWR_Init(void);
|
|
void PWR_Loop(void);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif |