This commit is contained in:
lmx
2025-12-03 10:05:53 +08:00
parent 2bc443584c
commit 754a529211
12 changed files with 1534 additions and 1473 deletions

View File

@ -14,21 +14,25 @@
//#define CONFIG_DEBUG_LITE_ENABLE //轻量级打印开关, 默认关闭
#endif
#define BLE_WIRELESS_CLIENT_EN 1 //开启则作为主设备lmx
//*********************************************************************************//
// AI配置 //
//*********************************************************************************//
#define CONFIG_APP_BT_ENABLE
#define BLE_WIRELESS_CLIENT_EN 1 //作为主设备lmx
#ifdef CONFIG_APP_BT_ENABLE
#define TRANS_DATA_EN 0
#define RCSP_BTMATE_EN 0
#if BLE_WIRELESS_CLIENT_EN == 0
#define RCSP_ADV_EN 1 // lmx打开这个则作为ble从设备
#else
#define RCSP_ADV_EN 0
#endif
#define AI_APP_PROTOCOL 0
#define LL_SYNC_EN 0
#define TUYA_DEMO_EN 0
#else
#define TRANS_DATA_EN 1
#define TRANS_DATA_EN 0
#define RCSP_BTMATE_EN 0
#define RCSP_ADV_EN 0
#define AI_APP_PROTOCOL 0

View File

@ -231,6 +231,7 @@ const int config_btctler_le_roles = (LE_ADV | LE_SLAVE);
const uint64_t config_btctler_le_features = LE_ENCRYPTION;
#else
const int config_btctler_le_roles = (LE_ADV | LE_SLAVE);
const uint64_t config_btctler_le_features = 0;
#endif

View File

@ -7,4 +7,6 @@
#define ACC_RANGE 16 //g加速度满量程:2、4、8、16
#endif

View File

@ -302,7 +302,7 @@ static int bt_connction_status_event_handler(struct bt_event *bt)
ble_bqb_test_thread_init();
} else {
#if !TCFG_WIRELESS_MIC_ENABLE
// bt_ble_init();
bt_ble_init(); // lmx初始化完初始化ble决定ble是作为主设备还是从设备
// xtell_ble_central_test_start(); //xtell
#endif
}