This commit is contained in:
lmx
2025-10-30 16:14:14 +08:00
parent c21ac0ab82
commit a6919c7e43
28 changed files with 209514 additions and 209842 deletions

View File

@ -70,8 +70,8 @@
#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);
#define xlog(format, ...) printf("[%s] " format, __func__, ##__VA_ARGS__)
#ifdef CONFIG_BOARD_AISPEECH_VAD_ASR
extern int ais_platform_asr_open(void);
@ -493,10 +493,7 @@ void spp_data_handler(u8 packet_type, u16 ch, u8 *packet, u16 size)
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);
@ -2692,6 +2689,15 @@ static int state_machine(struct application *app, enum app_state state, struct i
bredr_handle_register();
EARPHONE_STATE_INIT();
btstack_init();
u8 mac_data[6];
extern void rcsp_adv_fill_mac_addr(u8 *mac_addr_buf);
rcsp_adv_fill_mac_addr(mac_data); //读取MAC地址
xlog("ble xtell BT mac data:%x:%x:%x:%x:%x:%x",mac_data[0],mac_data[1],mac_data[2],mac_data[3],mac_data[4],mac_data[5]);
xlog("=============bt_function_select_init================\n");
#if TCFG_USER_TWS_ENABLE
tws_profile_init();
sys_key_event_filter_disable();