cun
This commit is contained in:
@ -70,6 +70,9 @@
|
||||
#include "bt_background.h"
|
||||
#include "default_event_handler.h"
|
||||
|
||||
// 为xtell传感器模块声明外部SPP处理函数
|
||||
extern void xtell_spp_data_handler(u8 packet_type, u16 ch, u8 *packet, u16 size);
|
||||
|
||||
#ifdef CONFIG_BOARD_AISPEECH_VAD_ASR
|
||||
extern int ais_platform_asr_open(void);
|
||||
extern void ais_platform_asr_close(void);
|
||||
@ -489,6 +492,11 @@ void spp_data_handler(u8 packet_type, u16 ch, u8 *packet, u16 size)
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
|
||||
// 将SPP事件转发给xtell传感器模块处理
|
||||
if (xtell_spp_data_handler) {
|
||||
xtell_spp_data_handler(packet_type, ch, packet, size);
|
||||
}
|
||||
}
|
||||
|
||||
extern const char *sdk_version_info_get(void);
|
||||
|
||||
Reference in New Issue
Block a user