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
@@ -730,13 +730,14 @@ STATIC const mp_machine_i2c_p_t mp_machine_soft_i2c_p = {
|
||||
.transfer = mp_machine_soft_i2c_transfer,
|
||||
};
|
||||
|
||||
const mp_obj_type_t mp_machine_soft_i2c_type = {
|
||||
{ &mp_type_type },
|
||||
.name = MP_QSTR_SoftI2C,
|
||||
.print = mp_machine_soft_i2c_print,
|
||||
.make_new = mp_machine_soft_i2c_make_new,
|
||||
.protocol = &mp_machine_soft_i2c_p,
|
||||
.locals_dict = (mp_obj_dict_t *)&mp_machine_i2c_locals_dict,
|
||||
};
|
||||
MP_DEFINE_CONST_OBJ_TYPE(
|
||||
mp_machine_soft_i2c_type,
|
||||
MP_QSTR_SoftI2C,
|
||||
MP_TYPE_FLAG_NONE,
|
||||
mp_machine_soft_i2c_make_new,
|
||||
print, mp_machine_soft_i2c_print,
|
||||
protocol, &mp_machine_soft_i2c_p,
|
||||
locals_dict, (mp_obj_dict_t *)&mp_machine_i2c_locals_dict
|
||||
);
|
||||
|
||||
#endif // MICROPY_PY_MACHINE_SOFTI2C
|
||||
|
||||
Reference in New Issue
Block a user