1
0
mirror of https://github.com/FreeRTOS/FreeRTOS.git synced 2025-07-24 14:18:08 +08:00

Update the sys tick to be more efficient.

This commit is contained in:
Richard Barry
2008-04-12 23:25:17 +00:00
parent af939eb0a9
commit a6053582fc
3 changed files with 6 additions and 6 deletions
Source/portable
GCC/ARM_CM3
IAR/ARM_CM3
RVDS/ARM_CM3

@ -262,12 +262,12 @@ void xPortPendSVHandler( void )
void xPortSysTickHandler( void )
{
vTaskIncrementTick();
/* If using preemption, also force a context switch. */
#if configUSE_PREEMPTION == 1
*(portNVIC_INT_CTRL) |= portNVIC_PENDSVSET;
#endif
vTaskIncrementTick();
}
/*-----------------------------------------------------------*/

@ -184,12 +184,12 @@ void vPortExitCritical( void )
void xPortSysTickHandler( void )
{
vTaskIncrementTick();
/* If using preemption, also force a context switch. */
#if configUSE_PREEMPTION == 1
*(portNVIC_INT_CTRL) |= portNVIC_PENDSVSET;
#endif
vTaskIncrementTick();
}
/*-----------------------------------------------------------*/

@ -243,12 +243,12 @@ sv_disable_interrupts
void xPortSysTickHandler( void )
{
vTaskIncrementTick();
/* If using preemption, also force a context switch. */
#if configUSE_PREEMPTION == 1
*(portNVIC_INT_CTRL) |= portNVIC_PENDSVSET;
#endif
vTaskIncrementTick();
}
/*-----------------------------------------------------------*/