diff options
author | richardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2> | 2008-04-12 23:32:18 +0000 |
---|---|---|
committer | richardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2> | 2008-04-12 23:32:18 +0000 |
commit | ea2de2853378baeeef67c2a42e258564bb87a918 (patch) | |
tree | f4d4607da4ac55303814c0879358e40bc9ce16b2 /Demo/AVR_ATMega323_WinAVR/serial/serial.c | |
parent | 8dd82911aec540c7f15399fb767719271771ffbc (diff) | |
download | freertos-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/AVR_ATMega323_WinAVR/serial/serial.c')
-rw-r--r-- | Demo/AVR_ATMega323_WinAVR/serial/serial.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Demo/AVR_ATMega323_WinAVR/serial/serial.c b/Demo/AVR_ATMega323_WinAVR/serial/serial.c index 24f33fc3..268d9916 100644 --- a/Demo/AVR_ATMega323_WinAVR/serial/serial.c +++ b/Demo/AVR_ATMega323_WinAVR/serial/serial.c @@ -210,13 +210,16 @@ unsigned portCHAR ucByte; SIGNAL( SIG_UART_RECV )
{
signed portCHAR cChar;
+portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
/* Get the character and post it on the queue of Rxed characters.
If the post causes a task to wake force a context switch as the woken task
may have a higher priority than the task we have interrupted. */
cChar = UDR;
- if( xQueueSendFromISR( xRxedChars, &cChar, pdFALSE ) )
+ xQueueSendFromISR( xRxedChars, &cChar, &xHigherPriorityTaskWoken );
+
+ if( xHigherPriorityTaskWoken != pdFALSE )
{
taskYIELD();
}
|