mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 17:48:33 -04:00
Convert mpre ports to use xTaskIncrementTick() in place of vTaskIncrementTick().
This commit is contained in:
parent
686d190798
commit
15ec6c87f7
11 changed files with 44 additions and 49 deletions
|
@ -348,8 +348,10 @@ static void prvSetupTimerInterrupt( void )
|
|||
|
||||
/* Increment the tick count then switch to the highest priority task
|
||||
that is ready to run. */
|
||||
vTaskIncrementTick();
|
||||
vTaskSwitchContext();
|
||||
if( xTaskIncrementTick() != pdFALSE )
|
||||
{
|
||||
vTaskSwitchContext();
|
||||
}
|
||||
|
||||
/* Restore the context of the new task. */
|
||||
portRESTORE_CONTEXT();
|
||||
|
@ -365,7 +367,7 @@ static void prvSetupTimerInterrupt( void )
|
|||
interrupt (TIMERA0_VECTOR) prvTickISR( void );
|
||||
interrupt (TIMERA0_VECTOR) prvTickISR( void )
|
||||
{
|
||||
vTaskIncrementTick();
|
||||
xTaskIncrementTick();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue