summaryrefslogtreecommitdiff
path: root/py/objmodule.c
diff options
context:
space:
mode:
authorScott Shawcroft <scott@adafruit.com>2020-03-04 11:46:17 -0800
committerGitHub <noreply@github.com>2020-03-04 11:46:17 -0800
commitb4e1955526725ac4701048f148dca9d76f3f446a (patch)
tree1cc7c8bbb77ec55171c197278a38d668598d5653 /py/objmodule.c
parent4aec5d1e83580f06364f076d9d683549ddf1ee2c (diff)
parentda31acfcc45e5ad43c8ea515650ef16540de7fbb (diff)
Merge pull request #2583 from jepler/ulab
Add 'ulab' as an extmod; enable on nrf and most samd51 boards
Diffstat (limited to 'py/objmodule.c')
-rw-r--r--py/objmodule.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/py/objmodule.c b/py/objmodule.c
index 627ba79e8..c7b080300 100644
--- a/py/objmodule.c
+++ b/py/objmodule.c
@@ -206,6 +206,14 @@ STATIC const mp_rom_map_elem_t mp_builtin_module_table[] = {
{ MP_ROM_QSTR(MP_QSTR_ujson), MP_ROM_PTR(&mp_module_ujson) },
#endif
#endif
+#if MICROPY_PY_ULAB
+#if CIRCUITPY
+// CircuitPython: Defined in MICROPY_PORT_BUILTIN_MODULES, so not defined here.
+// TODO: move to shared-bindings/
+#else
+ { MP_ROM_QSTR(MP_QSTR_ulab), MP_ROM_PTR(&ulab_user_cmodule) },
+#endif
+#endif
#if MICROPY_PY_URE
#if CIRCUITPY
// CircuitPython: Defined in MICROPY_PORT_BUILTIN_MODULES, so not defined here.