فهرست منبع

Merge pull request #41 from SummerGGift/ori_master

【添加】:添加 websocket, webrepl 的 qstr, 添加 os 属性
朱天龙 (Armink) 7 سال پیش
والد
کامیت
47f967738f
2فایلهای تغییر یافته به همراه7 افزوده شده و 1 حذف شده
  1. 6 0
      port/genhdr/qstrdefs.generated.h
  2. 1 1
      port/moduos.c

+ 6 - 0
port/genhdr/qstrdefs.generated.h

@@ -658,6 +658,12 @@ QDEF(MP_QSTR_IPPROTO_TCP, (const byte*)"\xb2\x0b" "IPPROTO_TCP")
 QDEF(MP_QSTR_IPPROTO_UDP, (const byte*)"\x54\x0b" "IPPROTO_UDP")
 QDEF(MP_QSTR_IPPROTO_UDP, (const byte*)"\x54\x0b" "IPPROTO_UDP")
 QDEF(MP_QSTR_IPPROTO_IPV6, (const byte*)"\x2c\x0c" "IPPROTO_IPV6")
 QDEF(MP_QSTR_IPPROTO_IPV6, (const byte*)"\x2c\x0c" "IPPROTO_IPV6")
 QDEF(MP_QSTR_IPPROTO_RAW, (const byte*)"\xf1\x0b" "IPPROTO_RAW")
 QDEF(MP_QSTR_IPPROTO_RAW, (const byte*)"\xf1\x0b" "IPPROTO_RAW")
+QDEF(MP_QSTR_websocket, (const byte*)"\x90\x09" "websocket")
+QDEF(MP_QSTR__webrepl, (const byte*)"\x21\x08" "_webrepl")
+QDEF(MP_QSTR_ioctl, (const byte*)"\x78\x05" "ioctl")
+QDEF(MP_QSTR_password, (const byte*)"\x9a\x08" "password")
+QDEF(MP_QSTR_rb, (const byte*)"\xd5\x02" "rb")
+QDEF(MP_QSTR_wb, (const byte*)"\x70\x02" "wb")
 QDEF(MP_QSTR_IP_ADD_MEMBERSHIP, (const byte*)"\x6f\x11" "IP_ADD_MEMBERSHIP")
 QDEF(MP_QSTR_IP_ADD_MEMBERSHIP, (const byte*)"\x6f\x11" "IP_ADD_MEMBERSHIP")
 QDEF(MP_QSTR_sendall, (const byte*)"\x38\x07" "sendall")
 QDEF(MP_QSTR_sendall, (const byte*)"\x38\x07" "sendall")
 
 

+ 1 - 1
port/moduos.c

@@ -122,7 +122,7 @@ STATIC const mp_rom_map_elem_t os_module_globals_table[] = {
 #endif
 #endif
 
 
     // these are MicroPython extensions
     // these are MicroPython extensions
-    //{ MP_ROM_QSTR(MP_QSTR_dupterm), MP_ROM_PTR(&mp_uos_dupterm_obj) },
+    { MP_ROM_QSTR(MP_QSTR_dupterm), MP_ROM_PTR(&mp_uos_dupterm_obj) },
     { MP_ROM_QSTR(MP_QSTR_mount), MP_ROM_PTR(&mp_posix_mount_obj) },
     { MP_ROM_QSTR(MP_QSTR_mount), MP_ROM_PTR(&mp_posix_mount_obj) },
     { MP_ROM_QSTR(MP_QSTR_umount), MP_ROM_PTR(&mp_posix_umount_obj) },
     { MP_ROM_QSTR(MP_QSTR_umount), MP_ROM_PTR(&mp_posix_umount_obj) },
     //{ MP_ROM_QSTR(MP_QSTR_VfsFat), MP_ROM_PTR(&mp_fat_vfs_type) },
     //{ MP_ROM_QSTR(MP_QSTR_VfsFat), MP_ROM_PTR(&mp_fat_vfs_type) },