mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-06 13:15:19 -05:00
Merge branch 'main' into feature/add-cortex-m52-support
This commit is contained in:
commit
9478a6562e
1 changed files with 19 additions and 7 deletions
|
|
@ -1026,7 +1026,11 @@ 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 ();
|
* // As xHigherPriorityTaskWoken is now set to pdTRUE then a context
|
||||||
|
* // switch should be requested. The macro used is port specific and
|
||||||
|
* // will be either portYIELD_FROM_ISR() or portEND_SWITCHING_ISR() -
|
||||||
|
* // refer to the documentation page for the port being used.
|
||||||
|
* portYIELD_FROM_ISR( xHigherPriorityTaskWoken );
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
|
|
@ -1098,7 +1102,11 @@ 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 ();
|
* // As xHigherPriorityTaskWoken is now set to pdTRUE then a context
|
||||||
|
* // switch should be requested. The macro used is port specific and
|
||||||
|
* // will be either portYIELD_FROM_ISR() or portEND_SWITCHING_ISR() -
|
||||||
|
* // refer to the documentation page for the port being used.
|
||||||
|
* portYIELD_FROM_ISR( xHigherPriorityTaskWoken );
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
|
|
@ -1429,23 +1437,27 @@ BaseType_t xQueueGiveFromISR( QueueHandle_t xQueue,
|
||||||
* // ISR that outputs all the characters received on the queue.
|
* // ISR that outputs all the characters received on the queue.
|
||||||
* void vISR_Routine( void )
|
* void vISR_Routine( void )
|
||||||
* {
|
* {
|
||||||
* BaseType_t xTaskWokenByReceive = pdFALSE;
|
* BaseType_t xHigherPriorityTaskWoken = pdFALSE;
|
||||||
* char cRxedChar;
|
* char cRxedChar;
|
||||||
*
|
*
|
||||||
* while( xQueueReceiveFromISR( xQueue, ( void * ) &cRxedChar, &xTaskWokenByReceive) )
|
* while( xQueueReceiveFromISR( xQueue, ( void * ) &cRxedChar, &xHigherPriorityTaskWoken) )
|
||||||
* {
|
* {
|
||||||
* // A character was received. Output the character now.
|
* // A character was received. Output the character now.
|
||||||
* vOutputCharacter( cRxedChar );
|
* vOutputCharacter( cRxedChar );
|
||||||
*
|
*
|
||||||
* // If removing the character from the queue woke the task that was
|
* // If removing the character from the queue woke the task that was
|
||||||
* // posting onto the queue xTaskWokenByReceive will have been set to
|
* // posting onto the queue xHigherPriorityTaskWoken will have been set to
|
||||||
* // pdTRUE. No matter how many times this loop iterates only one
|
* // pdTRUE. No matter how many times this loop iterates only one
|
||||||
* // task will be woken.
|
* // task will be woken.
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* if( xTaskWokenByReceive != ( char ) pdFALSE;
|
* if( xHigherPrioritytaskWoken == pdTRUE );
|
||||||
* {
|
* {
|
||||||
* taskYIELD ();
|
* // As xHigherPriorityTaskWoken is now set to pdTRUE then a context
|
||||||
|
* // switch should be requested. The macro used is port specific and
|
||||||
|
* // will be either portYIELD_FROM_ISR() or portEND_SWITCHING_ISR() -
|
||||||
|
* // refer to the documentation page for the port being used.
|
||||||
|
* portYIELD_FROM_ISR( xHigherPriorityTaskWoken );
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue