mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 01:40:14 +01:00
all: Make all mp_obj_type_t defs use MP_DEFINE_CONST_OBJ_TYPE.
In preparation for upcoming rework of mp_obj_type_t layout. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
committed by
Damien George
parent
cdb880789f
commit
662b9761b3
@@ -374,13 +374,14 @@ STATIC const mp_rom_map_elem_t extint_locals_dict_table[] = {
|
||||
|
||||
STATIC MP_DEFINE_CONST_DICT(extint_locals_dict, extint_locals_dict_table);
|
||||
|
||||
const mp_obj_type_t extint_type = {
|
||||
{ &mp_type_type },
|
||||
.name = MP_QSTR_ExtInt,
|
||||
.print = extint_obj_print,
|
||||
.make_new = extint_make_new,
|
||||
.locals_dict = (mp_obj_dict_t *)&extint_locals_dict,
|
||||
};
|
||||
MP_DEFINE_CONST_OBJ_TYPE(
|
||||
extint_type,
|
||||
MP_QSTR_ExtInt,
|
||||
MP_TYPE_FLAG_NONE,
|
||||
extint_make_new,
|
||||
locals_dict, &extint_locals_dict,
|
||||
print, extint_obj_print
|
||||
);
|
||||
|
||||
void extint_init0(void) {
|
||||
ra_icu_init();
|
||||
|
||||
Reference in New Issue
Block a user