|
|
|
@ -76,7 +76,7 @@
|
|
|
|
|
* Implementation of functions defined in portable.h for the PIC32MX port.
|
|
|
|
|
*----------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
#ifndef __XC__
|
|
|
|
|
#ifndef __XC
|
|
|
|
|
#error This port is designed to work with XC32. Please update your C compiler version.
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
@ -245,14 +245,14 @@ void vPortIncrementTick( void )
|
|
|
|
|
unsigned portBASE_TYPE uxSavedStatus;
|
|
|
|
|
|
|
|
|
|
uxSavedStatus = uxPortSetInterruptMaskFromISR();
|
|
|
|
|
vTaskIncrementTick();
|
|
|
|
|
vPortClearInterruptMaskFromISR( uxSavedStatus );
|
|
|
|
|
|
|
|
|
|
/* If we are using the preemptive scheduler then we might want to select
|
|
|
|
|
a different task to execute. */
|
|
|
|
|
#if configUSE_PREEMPTION == 1
|
|
|
|
|
{
|
|
|
|
|
if( xTaskIncrementTick() != pdFALSE )
|
|
|
|
|
{
|
|
|
|
|
/* Pend a context switch. */
|
|
|
|
|
_CP0_BIS_CAUSE( portCORE_SW_0 );
|
|
|
|
|
#endif /* configUSE_PREEMPTION */
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
vPortClearInterruptMaskFromISR( uxSavedStatus );
|
|
|
|
|
|
|
|
|
|
/* Clear timer 1 interrupt. */
|
|
|
|
|
IFS0CLR = _IFS0_T1IF_MASK;
|
|
|
|
|