projects
/
mirrors
/
FD230.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ec6fda
)
去除蓝牙初始化中的irq_lock
1436/2
author
hcj
<1224667075@qq.com>
Thu, 21 Nov 2024 07:37:42 +0000
(15:37 +0800)
committer
hcj
<1224667075@qq.com>
Thu, 21 Nov 2024 07:37:42 +0000
(15:37 +0800)
code/sdk/drivers/peripheral/utils/custom_utils.c
patch
|
blob
|
history
diff --git
a/code/sdk/drivers/peripheral/utils/custom_utils.c
b/code/sdk/drivers/peripheral/utils/custom_utils.c
index
3720930
..
2fb2b51
100644
(file)
--- 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;
}