mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 05:21:59 -04:00
Update the sys tick to be more efficient.
This commit is contained in:
parent
af939eb0a9
commit
a6053582fc
|
@ -262,12 +262,12 @@ void xPortPendSVHandler( void )
|
||||||
|
|
||||||
void xPortSysTickHandler( void )
|
void xPortSysTickHandler( void )
|
||||||
{
|
{
|
||||||
vTaskIncrementTick();
|
|
||||||
|
|
||||||
/* If using preemption, also force a context switch. */
|
/* If using preemption, also force a context switch. */
|
||||||
#if configUSE_PREEMPTION == 1
|
#if configUSE_PREEMPTION == 1
|
||||||
*(portNVIC_INT_CTRL) |= portNVIC_PENDSVSET;
|
*(portNVIC_INT_CTRL) |= portNVIC_PENDSVSET;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
vTaskIncrementTick();
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -184,12 +184,12 @@ void vPortExitCritical( void )
|
||||||
|
|
||||||
void xPortSysTickHandler( void )
|
void xPortSysTickHandler( void )
|
||||||
{
|
{
|
||||||
vTaskIncrementTick();
|
|
||||||
|
|
||||||
/* If using preemption, also force a context switch. */
|
/* If using preemption, also force a context switch. */
|
||||||
#if configUSE_PREEMPTION == 1
|
#if configUSE_PREEMPTION == 1
|
||||||
*(portNVIC_INT_CTRL) |= portNVIC_PENDSVSET;
|
*(portNVIC_INT_CTRL) |= portNVIC_PENDSVSET;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
vTaskIncrementTick();
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -243,12 +243,12 @@ sv_disable_interrupts
|
||||||
|
|
||||||
void xPortSysTickHandler( void )
|
void xPortSysTickHandler( void )
|
||||||
{
|
{
|
||||||
vTaskIncrementTick();
|
|
||||||
|
|
||||||
/* If using preemption, also force a context switch. */
|
/* If using preemption, also force a context switch. */
|
||||||
#if configUSE_PREEMPTION == 1
|
#if configUSE_PREEMPTION == 1
|
||||||
*(portNVIC_INT_CTRL) |= portNVIC_PENDSVSET;
|
*(portNVIC_INT_CTRL) |= portNVIC_PENDSVSET;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
vTaskIncrementTick();
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue