mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-01 11:53:53 -04:00
Update to use new xQueueSendFromISR() and xSemaphoreGiveFromISR() function semantics.
This commit is contained in:
parent
7eb7201b46
commit
f4dd20dffc
54 changed files with 266 additions and 251 deletions
|
@ -83,6 +83,7 @@ Changes from V3.0.1
|
|||
* because this SFR will be restored before exiting the ISR.
|
||||
*/
|
||||
extern portCHAR cChar;
|
||||
extern portBASE_TYPE xHigherPriorityTaskWoken;
|
||||
#pragma locate cChar &PRODL
|
||||
|
||||
/*
|
||||
|
@ -112,7 +113,10 @@ Changes from V3.0.1
|
|||
bCREN = serCONTINUOUS_RX;
|
||||
}
|
||||
|
||||
if( xQueueSendFromISR( xRxedChars, ( const void * ) &cChar, pdFALSE ) )
|
||||
xHigherPriorityTaskWoken = pdFALSE;
|
||||
xQueueSendFromISR( xRxedChars, ( const void * ) &cChar, &xHigherPriorityTaskWoken );
|
||||
|
||||
if( xHigherPriorityTaskWoken )
|
||||
{
|
||||
uxSwitchRequested = pdTRUE;
|
||||
}
|
||||
|
|
|
@ -80,6 +80,7 @@ Changes from V3.0.1
|
|||
/* Queues to interface between comms API and interrupt routines. */
|
||||
xQueueHandle xRxedChars;
|
||||
xQueueHandle xCharsForTx;
|
||||
portBASE_TYPE xHigherPriorityTaskWoken;
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue