diff options
| author | iabdalkader <i.abdalkader@gmail.com> | 2023-12-31 08:32:09 +0100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2024-01-02 18:19:58 +1100 |
| commit | 87d3f8b367dfe97d03863f62f565a3ddee1cb945 (patch) | |
| tree | 5eda15efa6777c4ec3a34634cdd371440ba6329a | |
| parent | 2037edb5a22cf9c7d2dd665a3ce8b1eb470cadd1 (diff) | |
mimxrt/mphalport: Remove redundant NVIC/IRQ defines.
These are already defined in `irq.h`.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
| -rw-r--r-- | ports/mimxrt/mphalport.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/ports/mimxrt/mphalport.h b/ports/mimxrt/mphalport.h index c4e5b052c..4f1f4bfd1 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); |
