From 4da90f09e7a80aa24fbbbd5e8dcce34387346a35 Mon Sep 17 00:00:00 2001 From: Krzysztof Bociurko Date: Sun, 29 Oct 2017 22:49:41 +0100 Subject: [PATCH] freertos: minor issue in documentation snippet of queue. taskYIELD was used in ISR context, but portYIELD_FROM_ISR should instead. Merges https://github.com/espressif/esp-idf/pull/1187 --- components/freertos/include/freertos/queue.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/freertos/include/freertos/queue.h b/components/freertos/include/freertos/queue.h index 9d95ad1bb..638157765 100644 --- a/components/freertos/include/freertos/queue.h +++ b/components/freertos/include/freertos/queue.h @@ -1106,7 +1106,7 @@ void vQueueDelete( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; // Now the buffer is empty we can switch context if necessary. if( xHigherPriorityTaskWoken ) { - taskYIELD (); + portYIELD_FROM_ISR (); } } @@ -1177,7 +1177,7 @@ void vQueueDelete( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; // Now the buffer is empty we can switch context if necessary. if( xHigherPriorityTaskWoken ) { - taskYIELD (); + portYIELD_FROM_ISR (); } }