From 223bd9c75fa23bcc9d6082e6eccd8e512de0cd53 Mon Sep 17 00:00:00 2001 From: Richard Barry Date: Wed, 17 Sep 2008 15:52:54 +0000 Subject: [PATCH] BUG FIX: Changed *(portNVIC_INT_CTRL) |= portNVIC_PENDSVSET; to *(portNVIC_INT_CTRL) = portNVIC_PENDSVSET; --- Source/portable/GCC/ARM_CM3/port.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/portable/GCC/ARM_CM3/port.c b/Source/portable/GCC/ARM_CM3/port.c index 8b954635b..b0faf44e9 100644 --- a/Source/portable/GCC/ARM_CM3/port.c +++ b/Source/portable/GCC/ARM_CM3/port.c @@ -189,7 +189,7 @@ void vPortEndScheduler( void ) void vPortYieldFromISR( void ) { /* Set a PendSV to request a context switch. */ - *(portNVIC_INT_CTRL) |= portNVIC_PENDSVSET; + *(portNVIC_INT_CTRL) = portNVIC_PENDSVSET; } /*-----------------------------------------------------------*/ @@ -251,7 +251,7 @@ unsigned portLONG ulDummy; /* If using preemption, also force a context switch. */ #if configUSE_PREEMPTION == 1 - *(portNVIC_INT_CTRL) |= portNVIC_PENDSVSET; + *(portNVIC_INT_CTRL) = portNVIC_PENDSVSET; #endif ulDummy = portSET_INTERRUPT_MASK_FROM_ISR();