summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/mpconfigport.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-12-29 00:20:34 +0000
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-03-24 17:33:42 +0200
commit78d0dde5622aa9ab55b7dfc0dc26407734580780 (patch)
tree51e19077e375af5b184e6dfa7d54d7990aadf591 /esp8266/mpconfigport.h
parent0cdbd356fdd9dc5ad9c88bb0ee9b027b98981386 (diff)
downloadmicropython-78d0dde5622aa9ab55b7dfc0dc26407734580780.tar.gz
micropython-78d0dde5622aa9ab55b7dfc0dc26407734580780.zip
esp8266: Add onewire helper functions as C module.
Includes functions to read and write bits and bytes.
Diffstat (limited to 'esp8266/mpconfigport.h')
-rw-r--r--esp8266/mpconfigport.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/esp8266/mpconfigport.h b/esp8266/mpconfigport.h
index cedc6dd405..aee1220f66 100644
--- a/esp8266/mpconfigport.h
+++ b/esp8266/mpconfigport.h
@@ -94,6 +94,7 @@ extern const struct _mp_obj_module_t utime_module;
extern const struct _mp_obj_module_t uos_module;
extern const struct _mp_obj_module_t mp_module_lwip;
extern const struct _mp_obj_module_t mp_module_machine;
+extern const struct _mp_obj_module_t onewire_module;
#define MICROPY_PORT_BUILTIN_MODULES \
{ MP_OBJ_NEW_QSTR(MP_QSTR_pyb), (mp_obj_t)&pyb_module }, \
@@ -105,6 +106,7 @@ extern const struct _mp_obj_module_t mp_module_machine;
{ MP_OBJ_NEW_QSTR(MP_QSTR_utime), (mp_obj_t)&utime_module }, \
{ MP_OBJ_NEW_QSTR(MP_QSTR_uos), (mp_obj_t)&uos_module }, \
{ MP_OBJ_NEW_QSTR(MP_QSTR_machine), (mp_obj_t)&mp_module_machine }, \
+ { MP_OBJ_NEW_QSTR(MP_QSTR__onewire), (mp_obj_t)&onewire_module }, \
#define MICROPY_PORT_BUILTIN_MODULE_WEAK_LINKS \
{ MP_OBJ_NEW_QSTR(MP_QSTR_time), (mp_obj_t)&utime_module }, \