ports: Move MICROPY_PY_LWIP_ENTER/REENTER/EXIT defns to mphalport.h.

Following ad806df857 where the
MICROPY_PY_PENDSV_ENTER/REENTER/EXIT macro definitions were moved to
mphalport.h.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2024-01-05 15:37:17 +11:00
parent ee226a8b43
commit d45176fc27
8 changed files with 19 additions and 19 deletions

View File

@@ -43,6 +43,11 @@
#define MICROPY_PY_PENDSV_ENTER pendsv_suspend()
#define MICROPY_PY_PENDSV_EXIT pendsv_resume()
// Prevent the "lwIP task" from running when unsafe to do so.
#define MICROPY_PY_LWIP_ENTER lwip_lock_acquire();
#define MICROPY_PY_LWIP_REENTER lwip_lock_acquire();
#define MICROPY_PY_LWIP_EXIT lwip_lock_release();
extern int mp_interrupt_char;
extern ringbuf_t stdin_ringbuf;