mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-18 09:08:33 -04:00
Update to use new xQueueSendFromISR() and xSemaphoreGiveFromISR() function semantics.
This commit is contained in:
parent
f4dd20dffc
commit
c1e9f859c8
9 changed files with 56 additions and 73 deletions
|
@ -352,14 +352,14 @@ unsigned portLONG ulStatus;
|
|||
|
||||
void vGPIO_ISR( void )
|
||||
{
|
||||
portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
|
||||
|
||||
/* Clear the interrupt. */
|
||||
GPIOPinIntClear(GPIO_PORTC_BASE, mainPUSH_BUTTON);
|
||||
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 );
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue