mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-31 01:20:44 +00:00
freertos: btstack_run_loop_freertos_execute_code_on_main_thread_from_isr
This commit is contained in:
parent
eee615e5b1
commit
be9b024751
@ -45,7 +45,7 @@ HCI Dump: replace monolithic `hci_dump.c` (with many #ifdefs) into dispatcher wi
|
|||||||
- `embedded/hci_dump_embedded_stdout` - log to console using printf
|
- `embedded/hci_dump_embedded_stdout` - log to console using printf
|
||||||
- `embedded/hci_dump_segger_stdout` - log to RTT console using `SEGGER_printf`
|
- `embedded/hci_dump_segger_stdout` - log to RTT console using `SEGGER_printf`
|
||||||
- `embedded/hci_dump_segger_binary` - writes binary log over RTT to host
|
- `embedded/hci_dump_segger_binary` - writes binary log over RTT to host
|
||||||
|
FreeRTOS/Run Loop: remove `btstack_run_loop_freertos_execute_code_on_main_thread_from_isr`. A polled data source can be used instead.
|
||||||
|
|
||||||
## Release v1.3.2
|
## Release v1.3.2
|
||||||
|
|
||||||
|
@ -141,23 +141,6 @@ void btstack_run_loop_freertos_execute_code_on_main_thread(void (*fn)(void *arg)
|
|||||||
btstack_run_loop_freertos_trigger();
|
btstack_run_loop_freertos_trigger();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(HAVE_FREERTOS_TASK_NOTIFICATIONS) || (INCLUDE_xEventGroupSetBitFromISR == 1)
|
|
||||||
void btstack_run_loop_freertos_trigger_from_isr(void){
|
|
||||||
BaseType_t xHigherPriorityTaskWoken;
|
|
||||||
#ifdef HAVE_FREERTOS_TASK_NOTIFICATIONS
|
|
||||||
xTaskNotifyFromISR(btstack_run_loop_task, EVENT_GROUP_FLAG_RUN_LOOP, eSetBits, &xHigherPriorityTaskWoken);
|
|
||||||
if (xHigherPriorityTaskWoken) {
|
|
||||||
#ifdef ESP_PLATFORM
|
|
||||||
portYIELD_FROM_ISR();
|
|
||||||
#else
|
|
||||||
portYIELD_FROM_ISR( xHigherPriorityTaskWoken );
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
xEventGroupSetBitsFromISR(btstack_run_loop_event_group, EVENT_GROUP_FLAG_RUN_LOOP, &xHigherPriorityTaskWoken);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
void btstack_run_loop_freertos_execute_code_on_main_thread_from_isr(void (*fn)(void *arg), void * arg){
|
void btstack_run_loop_freertos_execute_code_on_main_thread_from_isr(void (*fn)(void *arg), void * arg){
|
||||||
function_call_t message;
|
function_call_t message;
|
||||||
message.fn = fn;
|
message.fn = fn;
|
||||||
|
@ -61,11 +61,6 @@ const btstack_run_loop_t * btstack_run_loop_freertos_get_instance(void);
|
|||||||
*/
|
*/
|
||||||
void btstack_run_loop_freertos_execute_code_on_main_thread(void (*fn)(void *arg), void * arg);
|
void btstack_run_loop_freertos_execute_code_on_main_thread(void (*fn)(void *arg), void * arg);
|
||||||
|
|
||||||
/*
|
|
||||||
* @brief Execute code on BTstack run loop. Can be used to control BTstack from an ISR
|
|
||||||
*/
|
|
||||||
void btstack_run_loop_freertos_execute_code_on_main_thread_from_isr(void (*fn)(void *arg), void * arg);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Triggers processing of data sources from thread context.
|
* @brief Triggers processing of data sources from thread context.
|
||||||
* Has to be called after enabling a poll data source to wake-pup run loop.
|
* Has to be called after enabling a poll data source to wake-pup run loop.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user