Skip to content

Commit

Permalink
freertos: init btstack_run_loop_task already during run loop init
Browse files Browse the repository at this point in the history
  • Loading branch information
mringwal committed Oct 25, 2017
1 parent 297a0e0 commit a6f770a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions platform/freertos/btstack_run_loop_freertos.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

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

Expand Down

0 comments on commit a6f770a

Please sign in to comment.