From 33b5bf8900e73d6edce7b453c89930bbc592cc49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Sch=C3=A4pers?= Date: Sun, 28 Jul 2024 15:50:44 +0200 Subject: [PATCH] Only one Read-Modify-Write for SHPR3 on CM7 --- portable/GCC/ARM_CM7/r0p1/port.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/portable/GCC/ARM_CM7/r0p1/port.c b/portable/GCC/ARM_CM7/r0p1/port.c index ac067274d..e658b8616 100644 --- a/portable/GCC/ARM_CM7/r0p1/port.c +++ b/portable/GCC/ARM_CM7/r0p1/port.c @@ -419,8 +419,7 @@ BaseType_t xPortStartScheduler( void ) /* Make PendSV and SysTick the lowest priority interrupts, and make SVCall * the highest priority. */ - portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI; - portNVIC_SHPR3_REG |= portNVIC_SYSTICK_PRI; + portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI | portNVIC_SYSTICK_PRI; portNVIC_SHPR2_REG = 0; /* Start the timer that generates the tick ISR. Interrupts are disabled