py: Add MP_ROM_* macros and mp_rom_* types and use them.
diff --git a/py/parse.c b/py/parse.c
index c1947f7..61c98b9 100644
--- a/py/parse.c
+++ b/py/parse.c
@@ -417,9 +417,9 @@
}
#if MICROPY_COMP_MODULE_CONST
-STATIC const mp_map_elem_t mp_constants_table[] = {
+STATIC const mp_rom_map_elem_t mp_constants_table[] = {
#if MICROPY_PY_UCTYPES
- { MP_OBJ_NEW_QSTR(MP_QSTR_uctypes), (mp_obj_t)&mp_module_uctypes },
+ { MP_ROM_QSTR(MP_QSTR_uctypes), MP_ROM_PTR(&mp_module_uctypes) },
#endif
// Extra constants as defined by a port
MICROPY_PORT_CONSTANTS