summaryrefslogtreecommitdiff
path: root/Demo/CORTEX_LM3S811_GCC/main.c
diff options
context:
space:
mode:
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2008-04-12 23:34:13 +0000
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2008-04-12 23:34:13 +0000
commit5864b2ab0af8ee476b0ec085bad901899bc4d63b (patch)
tree3bf6b0efd0e21d7a0974e959e9190bfd0d1faaf1 /Demo/CORTEX_LM3S811_GCC/main.c
parentea2de2853378baeeef67c2a42e258564bb87a918 (diff)
downloadfreertos-5864b2ab0af8ee476b0ec085bad901899bc4d63b.tar.gz
freertos-5864b2ab0af8ee476b0ec085bad901899bc4d63b.tar.bz2
freertos-5864b2ab0af8ee476b0ec085bad901899bc4d63b.tar.xz
Update to use new xQueueSendFromISR() and xSemaphoreGiveFromISR() function semantics.
git-svn-id: https://freertos.svn.sourceforge.net/svnroot/freertos/trunk@308 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Diffstat (limited to 'Demo/CORTEX_LM3S811_GCC/main.c')
-rw-r--r--Demo/CORTEX_LM3S811_GCC/main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/Demo/CORTEX_LM3S811_GCC/main.c b/Demo/CORTEX_LM3S811_GCC/main.c
index fc39bd13..5c581039 100644
--- a/Demo/CORTEX_LM3S811_GCC/main.c
+++ b/Demo/CORTEX_LM3S811_GCC/main.c
@@ -350,14 +350,15 @@ unsigned portLONG ulStatus;
void vGPIO_ISR( void )
{
+portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
+
/* Clear the interrupt. */
GPIOPinIntClear(GPIO_PORTC_BASE, mainPUSH_BUTTON);
/* Wake the button handler task. */
- if( xSemaphoreGiveFromISR( xButtonSemaphore, pdFALSE ) )
- {
- portEND_SWITCHING_ISR( pdTRUE );
- }
+ xSemaphoreGiveFromISR( xButtonSemaphore, &xHigherPriorityTaskWoken );
+
+ portEND_SWITCHING_ISR( xHigherPriorityTaskWoken );
}
/*-----------------------------------------------------------*/