From 87d3f8b367dfe97d03863f62f565a3ddee1cb945 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Sun, 31 Dec 2023 08:32:09 +0100 Subject: [PATCH] mimxrt/mphalport: Remove redundant NVIC/IRQ defines. These are already defined in `irq.h`. Signed-off-by: iabdalkader --- ports/mimxrt/mphalport.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/ports/mimxrt/mphalport.h b/ports/mimxrt/mphalport.h index c4e5b052c9..4f1f4bfd12 100644 --- a/ports/mimxrt/mphalport.h +++ b/ports/mimxrt/mphalport.h @@ -41,9 +41,6 @@ // For regular code that wants to prevent "background tasks" from running. // These background tasks (LWIP, Bluetooth) run in PENDSV context. -// TODO: Check for the settings of the STM32 port in irq.h -#define NVIC_PRIORITYGROUP_4 ((uint32_t)0x00000003) -#define IRQ_PRI_PENDSV NVIC_EncodePriority(NVIC_PRIORITYGROUP_4, 15, 0) #define MICROPY_PY_PENDSV_ENTER uint32_t atomic_state = raise_irq_pri(IRQ_PRI_PENDSV); #define MICROPY_PY_PENDSV_REENTER atomic_state = raise_irq_pri(IRQ_PRI_PENDSV); #define MICROPY_PY_PENDSV_EXIT restore_irq_pri(atomic_state);