mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-31 19:20:26 +00:00
esp32: avoid compile error in freertos support as xEventGroupSetBitsFromISR is not defined, but not needed on esp32
This commit is contained in:
parent
3b1180c97a
commit
8838c9457b
@ -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
|
||||
@ -157,3 +160,6 @@ 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user