Convert the remaining ports to use xTaskIncrementTick() in place of vTaskIncremenTick().
This commit is contained in:
@ -292,7 +292,7 @@ const unsigned short usReloadValue = ( unsigned short ) ( ( ( configPER_CLOCK_HZ
|
||||
LDI #_tmcsr0, R0
|
||||
AND R1,@R0 ;Clear RLT0 interrupt flag
|
||||
|
||||
CALL32 _vTaskIncrementTick,R12 ;Increment Tick
|
||||
CALL32 _xTaskIncrementTick,R12 ;Increment Tick
|
||||
CALL32 _vTaskSwitchContext,R12 ;Switch context if required
|
||||
|
||||
ANDCCR #0xEF ;Disable Interrupts
|
||||
@ -314,7 +314,7 @@ const unsigned short usReloadValue = ( unsigned short ) ( ( ( configPER_CLOCK_HZ
|
||||
{
|
||||
/* Clear RLT0 interrupt flag */
|
||||
TMCSR0_UF = 0;
|
||||
vTaskIncrementTick();
|
||||
xTaskIncrementTick();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -474,8 +474,10 @@ void vPortEndScheduler( void )
|
||||
|
||||
/* Increment the tick count then switch to the highest priority task
|
||||
that is ready to run. */
|
||||
vTaskIncrementTick();
|
||||
vTaskSwitchContext();
|
||||
if( xTaskIncrementTick() != pdFALSE )
|
||||
{
|
||||
vTaskSwitchContext();
|
||||
}
|
||||
|
||||
/* Disable interrupts so that portRESTORE_CONTEXT() is not interrupted */
|
||||
__DI();
|
||||
@ -499,7 +501,7 @@ void vPortEndScheduler( void )
|
||||
/* Clear RLT0 interrupt flag */
|
||||
TMCSR0_UF = 0;
|
||||
|
||||
vTaskIncrementTick();
|
||||
xTaskIncrementTick();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user