From: hcj <1224667075@qq.com> Date: Thu, 21 Nov 2024 07:37:42 +0000 (+0800) Subject: 去除蓝牙初始化中的irq_lock X-Git-Tag: fd230_release_V1.3.102~50^2~3 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=2cb4efedd84da46106b84d08d8d8ee34ea82491b;p=mirrors%2FFD230.git 去除蓝牙初始化中的irq_lock --- diff --git a/code/sdk/drivers/peripheral/utils/custom_utils.c b/code/sdk/drivers/peripheral/utils/custom_utils.c index 372093009..2fb2b51ea 100644 --- a/code/sdk/drivers/peripheral/utils/custom_utils.c +++ b/code/sdk/drivers/peripheral/utils/custom_utils.c @@ -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; }