Browse Source

enable ustruct

SummerGift 8 years ago
parent
commit
2d4b15bede
3 changed files with 6 additions and 2 deletions
  1. 1 1
      Quick Start Guide.md
  2. 4 0
      port/genhdr/qstrdefs.generated.h
  3. 1 1
      port/mpconfigport.h

+ 1 - 1
Quick Start Guide.md

@@ -145,7 +145,7 @@ GC:
 | ure                              | simple regular expressions               | yes      |
 | ure                              | simple regular expressions               | yes      |
 | uselect                          | wait for events on a set of streams      | no       |
 | uselect                          | wait for events on a set of streams      | no       |
 | usocket                          | socket module                            | no       |
 | usocket                          | socket module                            | no       |
-| ustruct                          | pack and unpack primitive data types     | no       |
+| ustruct                          | pack and unpack primitive data types     | yes      |
 | uzlib                            | zlib decompression                       | yes      |
 | uzlib                            | zlib decompression                       | yes      |
 | _thread                          | multithreading support                   | no       |
 | _thread                          | multithreading support                   | no       |
 
 

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

@@ -463,6 +463,10 @@ QDEF(MP_QSTR_values, (const byte*)"\x7d\x06" "values")
 QDEF(MP_QSTR_wfi, (const byte*)"\x9d\x03" "wfi")
 QDEF(MP_QSTR_wfi, (const byte*)"\x9d\x03" "wfi")
 QDEF(MP_QSTR_write, (const byte*)"\x98\x05" "write")
 QDEF(MP_QSTR_write, (const byte*)"\x98\x05" "write")
 QDEF(MP_QSTR_zip, (const byte*)"\xe6\x03" "zip")
 QDEF(MP_QSTR_zip, (const byte*)"\xe6\x03" "zip")
+QDEF(MP_QSTR_ustruct, (const byte*)"\x47\x08\x07" "ustruct")
+QDEF(MP_QSTR_unpack, (const byte*)"\x07\x3c\x06" "unpack")
+QDEF(MP_QSTR_unpack_from, (const byte*)"\x0e\x6d\x0b" "unpack_from")
+
 
 
 // This file was automatically generated by makeqstrdata.py
 // This file was automatically generated by makeqstrdata.py
 
 

+ 1 - 1
port/mpconfigport.h

@@ -109,7 +109,7 @@
 #define MICROPY_MODULE_WEAK_LINKS   (1)
 #define MICROPY_MODULE_WEAK_LINKS   (1)
 #define MICROPY_CAN_OVERRIDE_BUILTINS (1)
 #define MICROPY_CAN_OVERRIDE_BUILTINS (1)
 #define MICROPY_USE_INTERNAL_ERRNO  (1)
 #define MICROPY_USE_INTERNAL_ERRNO  (1)
-#define MICROPY_PY_STRUCT           (0)
+#define MICROPY_PY_STRUCT           (1)
 #define MICROPY_PY_RTTHREAD         (1)
 #define MICROPY_PY_RTTHREAD         (1)
 #define MICROPY_PY_SYS              (0)
 #define MICROPY_PY_SYS              (0)
 #define MICROPY_MODULE_FROZEN_MPY   (1)
 #define MICROPY_MODULE_FROZEN_MPY   (1)