mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 09:38:32 -04:00
Update to use new xQueueSendFromISR() and xSemaphoreGiveFromISR() function semantics.
This commit is contained in:
parent
c1e9f859c8
commit
8cf6a70c9e
2 changed files with 7 additions and 5 deletions
|
@ -371,6 +371,7 @@ void vApplicationTickHook( void )
|
|||
{
|
||||
static unsigned portLONG ulCallCount;
|
||||
static const xLCDMessage xMemsMessage = { mainUPDATE_BALL_MESSAGE, NULL };
|
||||
static portBASE_TYPE xHigherPriorityTaskWoken;
|
||||
|
||||
/* Periodically send a message to the LCD task telling it to update
|
||||
the MEMS input, and then if necessary the LCD. */
|
||||
|
@ -378,7 +379,8 @@ static const xLCDMessage xMemsMessage = { mainUPDATE_BALL_MESSAGE, NULL };
|
|||
if( ulCallCount >= mainMEMS_DELAY )
|
||||
{
|
||||
ulCallCount = 0;
|
||||
xQueueSendFromISR( xLCDQueue, &xMemsMessage, pdFALSE );
|
||||
xHigherPriorityTaskWoken = pdFALSE;
|
||||
xQueueSendFromISR( xLCDQueue, &xMemsMessage, &xHigherPriorityTaskWoken );
|
||||
}
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue