summaryrefslogtreecommitdiff
path: root/Demo/ARM7_STR75x_IAR/serial/serial.c
diff options
context:
space:
mode:
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2008-04-12 23:32:18 +0000
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2008-04-12 23:32:18 +0000
commitea2de2853378baeeef67c2a42e258564bb87a918 (patch)
treef4d4607da4ac55303814c0879358e40bc9ce16b2 /Demo/ARM7_STR75x_IAR/serial/serial.c
parent8dd82911aec540c7f15399fb767719271771ffbc (diff)
downloadfreertos-ea2de2853378baeeef67c2a42e258564bb87a918.tar.gz
freertos-ea2de2853378baeeef67c2a42e258564bb87a918.tar.bz2
freertos-ea2de2853378baeeef67c2a42e258564bb87a918.tar.xz
Update to use new xQueueSendFromISR() and xSemaphoreGiveFromISR() function semantics.
git-svn-id: https://freertos.svn.sourceforge.net/svnroot/freertos/trunk@307 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Diffstat (limited to 'Demo/ARM7_STR75x_IAR/serial/serial.c')
-rw-r--r--Demo/ARM7_STR75x_IAR/serial/serial.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Demo/ARM7_STR75x_IAR/serial/serial.c b/Demo/ARM7_STR75x_IAR/serial/serial.c
index 8f9f3c83..29548a80 100644
--- a/Demo/ARM7_STR75x_IAR/serial/serial.c
+++ b/Demo/ARM7_STR75x_IAR/serial/serial.c
@@ -235,7 +235,7 @@ void vSerialClose( xComPortHandle xPort )
__arm void vSerialISR( void )
{
signed portCHAR cChar;
-portBASE_TYPE xTaskWokenByTx = pdFALSE, xTaskWokenByPost = pdFALSE;
+portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
do
{
@@ -243,7 +243,7 @@ portBASE_TYPE xTaskWokenByTx = pdFALSE, xTaskWokenByPost = pdFALSE;
{
/* The interrupt was caused by the THR becoming empty. Are there any
more characters to transmit? */
- if( xQueueReceiveFromISR( xCharsForTx, &cChar, &xTaskWokenByTx ) == pdTRUE )
+ if( xQueueReceiveFromISR( xCharsForTx, &cChar, &xHigherPriorityTaskWoken ) == pdTRUE )
{
/* A character was retrieved from the queue so can be sent to the
THR now. */
@@ -263,14 +263,14 @@ portBASE_TYPE xTaskWokenByTx = pdFALSE, xTaskWokenByPost = pdFALSE;
character from the RHR and place it in the queue of received
characters. */
cChar = UART0->DR;
- xTaskWokenByPost = xQueueSendFromISR( xRxedChars, &cChar, xTaskWokenByPost );
+ xQueueSendFromISR( xRxedChars, &cChar, &xHigherPriorityTaskWoken );
UART_ClearITPendingBit( UART0, UART_IT_Receive );
}
} while( UART0->MIS );
/* If a task was woken by either a character being received or a character
being transmitted then we may need to switch to another task. */
- portEND_SWITCHING_ISR( ( xTaskWokenByPost || xTaskWokenByTx ) );
+ portEND_SWITCHING_ISR( xHigherPriorityTaskWoken );
}