Explorar el Código

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

Krzysztof Bociurko hace 8 años
padre
commit
4da90f09e7
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      components/freertos/include/freertos/queue.h

+ 2 - 2
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.
 	// Now the buffer is empty we can switch context if necessary.
 	if( xHigherPriorityTaskWoken )
 	if( xHigherPriorityTaskWoken )
 	{
 	{
-		taskYIELD ();
+		portYIELD_FROM_ISR ();
 	}
 	}
  }
  }
  </pre>
  </pre>
@@ -1177,7 +1177,7 @@ void vQueueDelete( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
 	// Now the buffer is empty we can switch context if necessary.
 	// Now the buffer is empty we can switch context if necessary.
 	if( xHigherPriorityTaskWoken )
 	if( xHigherPriorityTaskWoken )
 	{
 	{
-		taskYIELD ();
+		portYIELD_FROM_ISR ();
 	}
 	}
  }
  }
  </pre>
  </pre>