mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 01:40:14 +01:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user