From c22a293dc0834397a433c50d5c4a2645e1ba060c Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Tue, 13 Aug 2019 16:13:47 +0200 Subject: [PATCH] freertos: include 'FreeRTOS.h' before testing configuration --- platform/freertos/btstack_uart_block_freertos.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform/freertos/btstack_uart_block_freertos.c b/platform/freertos/btstack_uart_block_freertos.c index 5b386e292..eeba24e49 100644 --- a/platform/freertos/btstack_uart_block_freertos.c +++ b/platform/freertos/btstack_uart_block_freertos.c @@ -50,6 +50,12 @@ #include "btstack_run_loop_freertos.h" #include "hal_uart_dma.h" +#ifdef HAVE_FREERTOS_INCLUDE_PREFIX +#include "freertos/FreeRTOS.h" +#else +#include "FreeRTOS.h" +#endif + #if (INCLUDE_xEventGroupSetBitFromISR != 1) && !defined(HAVE_FREERTOS_TASK_NOTIFICATIONS) #error "The BTstack HAL UART Run Loop integration (btstack_uart_block_freertos) needs to trigger Run Loop iterations from ISR context," \ "but neither 'INCLUDE_xEventGroupSetBitFromISR' is enabled in your FreeRTOS configuration nor HAVE_FREERTOS_TASK_NOTIFICATIONS is enabled in " \