|
|
@ -159,7 +159,7 @@ void vPortEndScheduler( void )
|
|
|
|
void vPortYieldFromISR( void )
|
|
|
|
void vPortYieldFromISR( void )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
/* Set a PendSV to request a context switch. */
|
|
|
|
/* Set a PendSV to request a context switch. */
|
|
|
|
*(portNVIC_INT_CTRL) |= portNVIC_PENDSVSET;
|
|
|
|
*(portNVIC_INT_CTRL) = portNVIC_PENDSVSET;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/*-----------------------------------------------------------*/
|
|
|
|
/*-----------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
|
@ -186,7 +186,7 @@ unsigned portLONG ulDummy;
|
|
|
|
|
|
|
|
|
|
|
|
/* 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
|
|
|
|
|
|
|
|
|
|
|
|
ulDummy = portSET_INTERRUPT_MASK_FROM_ISR();
|
|
|
|
ulDummy = portSET_INTERRUPT_MASK_FROM_ISR();
|
|
|
|