1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 5 #include "py/builtin.h" 6 #include "py/mperrno.h" 7 #include "py/obj.h" 8 #include "py/runtime.h" 9 #include "ulog/ulog.h" 10 11 extern const mp_obj_type_t linksdk_device_type; 12 extern const mp_obj_type_t linksdk_gateway_type; 13 14 STATIC const mp_rom_map_elem_t linksdk_locals_dict_table[] = { 15 { MP_OBJ_NEW_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_aliyunIoT) }, 16 { MP_OBJ_NEW_QSTR(MP_QSTR_Device), MP_ROM_PTR(&linksdk_device_type) }, 17 { MP_OBJ_NEW_QSTR(MP_QSTR_Gateway), MP_ROM_PTR(&linksdk_gateway_type) }, 18 }; 19 20 STATIC MP_DEFINE_CONST_DICT(linksdk_locals_dict, linksdk_locals_dict_table); 21 22 const mp_obj_module_t aliyunIoT_module = { 23 .base = { &mp_type_module }, 24 .globals = (mp_obj_dict_t *)&linksdk_locals_dict, 25 }; 26