freertos: fix error message when xEventGroupSetBitsFromISR not defined, actually use it

This commit is contained in:
Matthias Ringwald 2017-05-15 18:06:10 +02:00
parent 9000f9159a
commit 3b1180c97a

View File

@ -136,7 +136,8 @@ void btstack_run_loop_freertos_execute_code_on_main_thread(void (*fn)(void *arg)
#if (INCLUDE_xEventGroupSetBitFromISR == 1)
void btstack_run_loop_freertos_trigger_from_isr(void){
xEventGroupSetBits(btstack_run_loop_event_group, EVENT_GROUP_FLAG_RUN_LOOP);
BaseType_t xHigherPriorityTaskWoken;
xEventGroupSetBitsFromISR(btstack_run_loop_event_group, EVENT_GROUP_FLAG_RUN_LOOP, &xHigherPriorityTaskWoken);
}
void btstack_run_loop_freertos_execute_code_on_main_thread_from_isr(void (*fn)(void *arg), void * arg){