feat(bluedroid): Add config to place btu and hci task stack in psram

- Also adjust the osi_thread_stop implementation.
This commit is contained in:
hejiaxin
2026-08-04 14:56:04 +08:00
parent 6891e46417
commit 7c48812de9
6 changed files with 103 additions and 12 deletions
@@ -195,8 +195,13 @@ bool BTU_StartUp(void)
osi_mutex_new(&btu_l2cap_alarm_lock);
const size_t workqueue_len[] = {BTU_TASK_WORKQUEUE0_LEN};
#if (!CONFIG_BT_BLUEDROID_BTU_TASK_STACK_IN_EXT_MEM)
btu_thread = osi_thread_create(BTU_TASK_NAME, BTU_TASK_STACK_SIZE, BTU_TASK_PRIO, BTU_TASK_PINNED_TO_CORE,
BTU_TASK_WORKQUEUE_NUM, workqueue_len);
BTU_TASK_WORKQUEUE_NUM, workqueue_len, false);
#else
btu_thread = osi_thread_create(BTU_TASK_NAME, BTU_TASK_STACK_SIZE, BTU_TASK_PRIO, BTU_TASK_PINNED_TO_CORE,
BTU_TASK_WORKQUEUE_NUM, workqueue_len, true);
#endif
if (btu_thread == NULL) {
goto error_exit;
}