esp8266: Add "esp" module with esp8266-specific "cooperative" networking.
So far implements .scan(lambda x: print(x)) function to scan for WiFi access
points.
diff --git a/esp8266/mpconfigport.h b/esp8266/mpconfigport.h
index c1cdcb3..7e7f0fd 100644
--- a/esp8266/mpconfigport.h
+++ b/esp8266/mpconfigport.h
@@ -59,9 +59,11 @@
// extra built in modules to add to the list of known ones
extern const struct _mp_obj_module_t pyb_module;
+extern const struct _mp_obj_module_t esp_module;
#define MICROPY_PORT_BUILTIN_MODULES \
{ MP_OBJ_NEW_QSTR(MP_QSTR_pyb), (mp_obj_t)&pyb_module }, \
+ { MP_OBJ_NEW_QSTR(MP_QSTR_esp), (mp_obj_t)&esp_module }, \
#define MP_STATE_PORT MP_STATE_VM