esp32: avoid compile error in freertos support as xEventGroupSetBitsFromISR is not defined, but not needed on esp32

This commit is contained in:
Matthias Ringwald 2017-05-15 18:06:55 +02:00
parent 3b1180c97a
commit 8838c9457b

View File

@ -50,9 +50,12 @@
#include "btstack_run_loop_freertos.h"
#include "hal_uart_dma.h"
// hack to avoid error for ESP32
#ifndef ESP_PLATFORM
#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."
#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
@ -156,4 +159,7 @@ static const btstack_uart_block_t btstack_uart_block_freertos = {
const btstack_uart_block_t * btstack_uart_block_freertos_instance(void){
return &btstack_uart_block_freertos;
}
}
// end of hack to avoid error for ESP32
#endif // ESP_PLATFORM