There was an error while loading. Please reload this page.
1 parent 2037edb commit 87d3f8bCopy full SHA for 87d3f8b
ports/mimxrt/mphalport.h
@@ -41,9 +41,6 @@
41
42
// For regular code that wants to prevent "background tasks" from running.
43
// 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)
47
#define MICROPY_PY_PENDSV_ENTER uint32_t atomic_state = raise_irq_pri(IRQ_PRI_PENDSV);
48
#define MICROPY_PY_PENDSV_REENTER atomic_state = raise_irq_pri(IRQ_PRI_PENDSV);
49
#define MICROPY_PY_PENDSV_EXIT restore_irq_pri(atomic_state);
0 commit comments