去除蓝牙初始化中的irq_lock 1436/2
authorhcj <1224667075@qq.com>
Thu, 21 Nov 2024 07:37:42 +0000 (15:37 +0800)
committerhcj <1224667075@qq.com>
Thu, 21 Nov 2024 07:37:42 +0000 (15:37 +0800)
code/sdk/drivers/peripheral/utils/custom_utils.c

index 3720930..2fb2b51 100644 (file)
@@ -406,7 +406,7 @@ extern void bluetooth_enable_all(void);
 bool start_custom_ble_service(void)
 {
     //加锁避免bt 初始化失败
-    uint32_t irq_sts = osal_irq_lock();
+    // uint32_t irq_sts = osal_irq_lock();
 #ifdef SUPPORT_BLE_SERVICE
         PRINT("start custom protocol classic bt ble service !\r\n");
         bluetooth_enable_all();
@@ -415,7 +415,7 @@ bool start_custom_ble_service(void)
     {
         uapi_dev_runtime_set_bt_powerstat(1);
     }
-    osal_irq_restore(irq_sts);
+    // osal_irq_restore(irq_sts);
     return true;
 }