mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-11 13:54:16 -04:00
Convert the remaining ports to use xTaskIncrementTick() in place of vTaskIncremenTick().
This commit is contained in:
parent
2fc9d033c6
commit
c04b074707
21 changed files with 80 additions and 98 deletions
|
@ -220,10 +220,11 @@ is being used. */
|
|||
static void __interrupt __far prvPreemptiveTick( void )
|
||||
{
|
||||
/* Get the scheduler to update the task states following the tick. */
|
||||
vTaskIncrementTick();
|
||||
|
||||
/* Switch in the context of the next task to be run. */
|
||||
portSWITCH_CONTEXT();
|
||||
if( xTaskIncrementTick() != pdFALSE )
|
||||
{
|
||||
/* Switch in the context of the next task to be run. */
|
||||
portSWITCH_CONTEXT();
|
||||
}
|
||||
|
||||
/* Reset interrupt. */
|
||||
outport( portEIO_REGISTER, portCLEAR_INTERRUPT );
|
||||
|
@ -233,7 +234,8 @@ is being used. */
|
|||
{
|
||||
/* Same as preemptive tick, but the cooperative scheduler is being used
|
||||
so we don't have to switch in the context of the next task. */
|
||||
vTaskIncrementTick();
|
||||
xTaskIncrementTick();
|
||||
|
||||
/* Reset interrupt. */
|
||||
outport( portEIO_REGISTER, portCLEAR_INTERRUPT );
|
||||
}
|
||||
|
|
|
@ -204,10 +204,11 @@ is being used. */
|
|||
static void __interrupt __far prvPreemptiveTick( void )
|
||||
{
|
||||
/* Get the scheduler to update the task states following the tick. */
|
||||
vTaskIncrementTick();
|
||||
|
||||
/* Switch in the context of the next task to be run. */
|
||||
portEND_SWITCHING_ISR();
|
||||
if( xTaskIncrementTick() != pdFALSE )
|
||||
{
|
||||
/* Switch in the context of the next task to be run. */
|
||||
portEND_SWITCHING_ISR();
|
||||
}
|
||||
|
||||
/* Reset interrupt. */
|
||||
outport( portEIO_REGISTER, portCLEAR_INTERRUPT );
|
||||
|
@ -217,7 +218,8 @@ is being used. */
|
|||
{
|
||||
/* Same as preemptive tick, but the cooperative scheduler is being used
|
||||
so we don't have to switch in the context of the next task. */
|
||||
vTaskIncrementTick();
|
||||
xTaskIncrementTick();
|
||||
|
||||
/* Reset interrupt. */
|
||||
outport( portEIO_REGISTER, portCLEAR_INTERRUPT );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue