aboutsummaryrefslogtreecommitdiff
path: root/py/objmodule.c
diff options
context:
space:
mode:
authoriabdalkader <i.abdalkader@gmail.com>2021-08-29 18:58:31 +0200
committerDamien George <damien@micropython.org>2021-09-19 23:35:10 +1000
commit2c5e9bbdface4eb163b53f486359ca2208b7b0a5 (patch)
tree5b127dd4fd824111bde507c654e09d4054fe65af /py/objmodule.c
parent38f8e852e04013e4616097320bf9cf75051a1b6b (diff)
extmod: Add platform module.
It contains the compiler version, and underlying system HAL/SDK version.
Diffstat (limited to 'py/objmodule.c')
-rw-r--r--py/objmodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/py/objmodule.c b/py/objmodule.c
index a1f9d9d7f..d648f0f8c 100644
--- a/py/objmodule.c
+++ b/py/objmodule.c
@@ -230,6 +230,9 @@ STATIC const mp_rom_map_elem_t mp_builtin_module_table[] = {
#if MICROPY_PY_BLUETOOTH
{ MP_ROM_QSTR(MP_QSTR_ubluetooth), MP_ROM_PTR(&mp_module_ubluetooth) },
#endif
+ #if MICROPY_PY_UPLATFORM
+ { MP_ROM_QSTR(MP_QSTR_uplatform), MP_ROM_PTR(&mp_module_uplatform) },
+ #endif
// extra builtin modules as defined by a port
MICROPY_PORT_BUILTIN_MODULES