mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-01 09:08:06 +00:00
freertos: init btstack_run_loop_task already during run loop init
This commit is contained in:
parent
297a0e053d
commit
a6f770a0a8
@ -178,10 +178,6 @@ void btstack_run_loop_freertos_execute_code_on_main_thread_from_isr(void (*fn)(v
|
||||
*/
|
||||
static void btstack_run_loop_freertos_execute(void) {
|
||||
log_debug("RL: execute");
|
||||
|
||||
#ifdef HAVE_FREERTOS_TASK_NOTIFICATIONS
|
||||
btstack_run_loop_task = xTaskGetCurrentTaskHandle();
|
||||
#endif
|
||||
|
||||
while (1) {
|
||||
|
||||
@ -259,6 +255,11 @@ static void btstack_run_loop_freertos_init(void){
|
||||
btstack_run_loop_event_group = xEventGroupCreate();
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_FREERTOS_TASK_NOTIFICATIONS
|
||||
btstack_run_loop_task = xTaskGetCurrentTaskHandle();
|
||||
log_info("run loop task %p", btstack_run_loop_task);
|
||||
#endif
|
||||
|
||||
log_info("run loop init, queue item size %u", (int) sizeof(function_call_t));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user