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 .
This commit is contained in:
Paul Sokolovsky
2015-10-27 00:04:33 +03:00
parent f3e46d0c52
commit e0d7740a22
6 changed files with 109 additions and 3 deletions

View File

@@ -189,6 +189,9 @@ STATIC const mp_map_elem_t mp_builtin_module_table[] = {
#if MICROPY_PY_USSL
{ MP_OBJ_NEW_QSTR(MP_QSTR_ussl), (mp_obj_t)&mp_module_ussl },
#endif
#if MICROPY_PY_LWIP
{ MP_OBJ_NEW_QSTR(MP_QSTR_lwip), (mp_obj_t)&mp_module_lwip },
#endif
// extra builtin modules as defined by a port
MICROPY_PORT_BUILTIN_MODULES