freertos: use ISR version of btstack_run_loop_freertos_single_threaded_execute_code_on_main_thread

This commit is contained in:
Matthias Ringwald 2017-04-19 19:44:06 +02:00
parent 6503ab8282
commit 612e8fb6c9

View File

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