Skip to content
Snippets Groups Projects
Commit ed1a88e2 authored by Damien George's avatar Damien George
Browse files

extmod/modlwip: Don't require a port to define concurrency macros.

parent 12ce9f26
No related branches found
No related tags found
No related merge requests found
...@@ -69,6 +69,13 @@ ...@@ -69,6 +69,13 @@
#define ip_reset_option(pcb, opt) ((pcb)->so_options &= ~(opt)) #define ip_reset_option(pcb, opt) ((pcb)->so_options &= ~(opt))
#endif #endif
// A port can define these hooks to provide concurrency protection
#ifndef MICROPY_PY_LWIP_ENTER
#define MICROPY_PY_LWIP_ENTER
#define MICROPY_PY_LWIP_REENTER
#define MICROPY_PY_LWIP_EXIT
#endif
#ifdef MICROPY_PY_LWIP_SLIP #ifdef MICROPY_PY_LWIP_SLIP
#include "netif/slipif.h" #include "netif/slipif.h"
#include "lwip/sio.h" #include "lwip/sio.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment