summaryrefslogtreecommitdiff
path: root/py/mpstate.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-10-27 00:04:33 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-10-27 00:04:59 +0300
commite0d7740a2294ed6bc7c6237f1a12413e0c5a9ce1 (patch)
treeb25bb2e27433b68fe9612b8682df6be008c10b5c /py/mpstate.h
parentf3e46d0c52de989e1d408f25f0b29b19a18d8927 (diff)
extmod/modlwip: slip: Use stream protocol and be port-independent.
Based on the original patch by Galen Hazelwood: https://github.com/micropython/micropython/pull/1517 .
Diffstat (limited to 'py/mpstate.h')
-rw-r--r--py/mpstate.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/py/mpstate.h b/py/mpstate.h
index dd185a7c2..9a8cc0201 100644
--- a/py/mpstate.h
+++ b/py/mpstate.h
@@ -127,6 +127,11 @@ typedef struct _mp_state_vm_t {
// include any root pointers defined by a port
MICROPY_PORT_ROOT_POINTERS
+ // root pointers for extmod
+ #if MICROPY_PY_LWIP_SLIP
+ mp_obj_t lwip_slip_stream;
+ #endif
+
//
// END ROOT POINTER SECTION
////////////////////////////////////////////////////////////