*(portNVIC_INT_CTRL) |= portNVIC_PENDSVSET;
to
*(portNVIC_INT_CTRL) = portNVIC_PENDSVSET;
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@472
1d2547de-c912-0410-9cb9-
b8ca96c0e9e2
void vPortYieldFromISR( void )\r
{\r
/* Set a PendSV to request a context switch. */\r
- *(portNVIC_INT_CTRL) |= portNVIC_PENDSVSET;\r
+ *(portNVIC_INT_CTRL) = portNVIC_PENDSVSET;\r
}\r
/*-----------------------------------------------------------*/\r
\r
\r
/* If using preemption, also force a context switch. */\r
#if configUSE_PREEMPTION == 1\r
- *(portNVIC_INT_CTRL) |= portNVIC_PENDSVSET; \r
+ *(portNVIC_INT_CTRL) = portNVIC_PENDSVSET; \r
#endif\r
\r
ulDummy = portSET_INTERRUPT_MASK_FROM_ISR();\r