Skip to content

Commit 87d3f8b

Browse files
iabdalkaderdpgeorge
authored andcommitted
mimxrt/mphalport: Remove redundant NVIC/IRQ defines.
These are already defined in `irq.h`. Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
1 parent 2037edb commit 87d3f8b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

ports/mimxrt/mphalport.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@
4141

4242
// For regular code that wants to prevent "background tasks" from running.
4343
// These background tasks (LWIP, Bluetooth) run in PENDSV context.
44-
// TODO: Check for the settings of the STM32 port in irq.h
45-
#define NVIC_PRIORITYGROUP_4 ((uint32_t)0x00000003)
46-
#define IRQ_PRI_PENDSV NVIC_EncodePriority(NVIC_PRIORITYGROUP_4, 15, 0)
4744
#define MICROPY_PY_PENDSV_ENTER uint32_t atomic_state = raise_irq_pri(IRQ_PRI_PENDSV);
4845
#define MICROPY_PY_PENDSV_REENTER atomic_state = raise_irq_pri(IRQ_PRI_PENDSV);
4946
#define MICROPY_PY_PENDSV_EXIT restore_irq_pri(atomic_state);

0 commit comments

Comments
 (0)