freertos: init btstack_run_loop_task already during run loop init

This commit is contained in:
Matthias Ringwald 2017-10-24 23:06:30 +02:00
parent 297a0e053d
commit a6f770a0a8

View File

@ -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));
}