Permalink
Browse files

freertos: init btstack_run_loop_task already during run loop init

  • Loading branch information...
mringwal committed Oct 24, 2017
1 parent 297a0e0 commit a6f770a0a8c3d00bdf2ad5d9ecc73016e2270f91
Showing with 5 additions and 4 deletions.
  1. +5 −4 platform/freertos/btstack_run_loop_freertos.c
@@ -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));
}

0 comments on commit a6f770a

Please sign in to comment.