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
|
@ -204,14 +204,12 @@ void prvSetupTimerInterrupt( void )
|
|||
|
||||
void vPortSysTickHandler( void * context, alt_u32 id )
|
||||
{
|
||||
/* Increment the Kernel Tick. */
|
||||
vTaskIncrementTick();
|
||||
|
||||
/* If using preemption, also force a context switch. */
|
||||
#if configUSE_PREEMPTION == 1
|
||||
/* Increment the kernel tick. */
|
||||
if( xTaskIncrementTick() != pdFALSE )
|
||||
{
|
||||
vTaskSwitchContext();
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
/* Clear the interrupt. */
|
||||
IOWR_ALTERA_AVALON_TIMER_STATUS( SYS_CLK_BASE, ~ALTERA_AVALON_TIMER_STATUS_TO_MSK );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue