From 92f3d82f1ec49599fe24e3a0a18ec2575d4a839a Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Tue, 9 May 2017 09:22:06 +0200 Subject: [PATCH] freertos: show error if INCLUDE_xEventGroupSetBitFromISR is not set --- platform/freertos/btstack_uart_block_freertos.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/freertos/btstack_uart_block_freertos.c b/platform/freertos/btstack_uart_block_freertos.c index e251fb535..3d9e1c428 100644 --- a/platform/freertos/btstack_uart_block_freertos.c +++ b/platform/freertos/btstack_uart_block_freertos.c @@ -50,6 +50,11 @@ #include "btstack_run_loop_freertos.h" #include "hal_uart_dma.h" +#if (INCLUDE_xEventGroupSetBitFromISR != 1) +#error "The BTstack HAL UART Run Loop integration (btstack_uart_block_freertos) needs to trigger Run Loop iterations from ISR context, +but 'INCLUDE_xEventGroupSetBitFromISR' is not enabled in your FreeRTOS configuration. Please enable INCLUDE_xEventGroupSetBitFromISR." +#endif + // uart config static const btstack_uart_config_t * uart_config;