From 612e8fb6c96086c076737eb58f6dc8b0819dd1e5 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 19 Apr 2017 19:44:06 +0200 Subject: [PATCH] freertos: use ISR version of btstack_run_loop_freertos_single_threaded_execute_code_on_main_thread --- .../freertos/btstack_uart_block_freertos_single_threaded.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/freertos/btstack_uart_block_freertos_single_threaded.c b/platform/freertos/btstack_uart_block_freertos_single_threaded.c index 10b3c5a74..535552845 100644 --- a/platform/freertos/btstack_uart_block_freertos_single_threaded.c +++ b/platform/freertos/btstack_uart_block_freertos_single_threaded.c @@ -71,12 +71,12 @@ static void btstack_uart_block_sent_thread(void * arg){ // called from ISR context static void btstack_uart_block_received_isr(void){ - btstack_run_loop_freertos_single_threaded_execute_code_on_main_thread(&btstack_uart_block_received_thread, NULL); + btstack_run_loop_freertos_single_threaded_execute_code_on_main_thread_from_isr(&btstack_uart_block_received_thread, NULL); } static void btstack_uart_block_sent_isr(void){ // notify upper stack that provided buffer can be used again - btstack_run_loop_freertos_single_threaded_execute_code_on_main_thread(&btstack_uart_block_sent_thread, NULL); + btstack_run_loop_freertos_single_threaded_execute_code_on_main_thread_from_isr(&btstack_uart_block_sent_thread, NULL); } //