Skip to content
Snippets Groups Projects
  1. Jun 03, 2019
  2. May 29, 2019
  3. May 27, 2019
  4. May 22, 2019
  5. May 21, 2019
    • Sébastien Rinsoz's avatar
      py: Update makefiles to use $(CAT) variable instead of hard coded "cat". · c03f81c6
      Sébastien Rinsoz authored
      The variable $(CAT) is initialised with the "cat" value in mkenv.mk like
      for the other command line tools (rm, echo, cp, mkdir etc).  With this,
      for example, Windows users can specify the path of cat.exe.
      c03f81c6
    • stijn's avatar
      py/objarray: Add decode method to bytearray. · fb54736b
      stijn authored
      Reuse the implementation for bytes since it works the same way regardless
      of the underlying type.  This method gets added for CPython compatibility
      of bytearray, but to keep the code simple and small array.array now also
      has a working decode method, which is non-standard but doesn't hurt.
      fb54736b
  6. May 17, 2019
  7. May 14, 2019
  8. May 13, 2019
  9. May 09, 2019
  10. May 07, 2019
  11. May 06, 2019
    • Jun Wu's avatar
      py: remove "if (0)" and "if (false)" branches. · 089c9b71
      Jun Wu authored
      Prior to this commit, building the unix port with `DEBUG=1` and
      `-finstrument-functions` the compilation would fail with an error like
      "control reaches end of non-void function".  This change fixes this by
      removing the problematic "if (0)" branches.  Not all branches affect
      compilation, but they are all removed for consistency.
      089c9b71
    • Yonatan Goldschmidt's avatar
      extmod/moducryptolib: Add AES-CTR support. · ef984365
      Yonatan Goldschmidt authored
      Selectable at compile time via MICROPY_PY_UCRYPTOLIB_CTR.  Disabled by
      default.
      ef984365
  12. May 03, 2019
  13. May 01, 2019
  14. Apr 23, 2019
  15. Apr 15, 2019
  16. Apr 12, 2019
  17. Mar 26, 2019
  18. Mar 19, 2019
  19. Mar 14, 2019
  20. Mar 08, 2019
    • Andrew Leech's avatar
      py: Update and rework build system for including external C modules. · 89ff5065
      Andrew Leech authored
      How to use this feature is documented in docs/develop/cmodules.rst.
      89ff5065
    • Ayke van Laethem's avatar
      py: Implement a module system for external, user C modules. · 2e516074
      Ayke van Laethem authored
      This system makes it a lot easier to include external libraries as static,
      native modules in MicroPython.  Simply pass USER_C_MODULES (like
      FROZEN_MPY_DIR) as a make parameter.
      2e516074
    • Andrew Leech's avatar
      py: Allow registration of modules at their definition. · cf22f479
      Andrew Leech authored
      During make, makemoduledefs.py parses the current builds c files for
      MP_REGISTER_MODULE(module_name, obj_module, enabled_define)
      
      These are used to generate a header with the required entries for
      "mp_rom_map_elem_t mp_builtin_module_table[]" in py/objmodule.c
      cf22f479
    • Damien George's avatar
      9a5f92ea
    • Damien George's avatar
      py: Add support to save native, viper and asm code to .mpy files. · 1396a026
      Damien George authored
      This commit adds support for saving and loading .mpy files that contain
      native code (native, viper and inline-asm).  A lot of the ground work was
      already done for this in the form of removing pointers from generated
      native code.  The changes here are mainly to link in qstr values to the
      native code, and change the format of .mpy files to contain native code
      blocks (possibly mixed with bytecode).
      
      A top-level summary:
      
      - @micropython.native, @micropython.viper and @micropython.asm_thumb/
        asm_xtensa are now allowed in .py files when compiling to .mpy, and they
        work transparently to the user.
      
      - Entire .py files can be compiled to native via mpy-cross -X emit=native
        and for the most part the generated .mpy files should work the same as
        their bytecode version.
      
      - The .mpy file format is changed to 1) specify in the header if the file
        contains native code and if so the architecture (eg x86, ARMV7M, Xtensa);
        2) for each function block the kind of code is specified (bytecode,
        native, viper, asm).
      
      - When native code is loaded from a .mpy file the native code must be
        modified (in place) to link qstr values in, just like bytecode (see
        py/persistentcode.c:arch_link_qstr() function).
      
      In addition, this now defines a public, native ABI for dynamically loadable
      native code generated by other languages, like C.
      1396a026
    • Damien George's avatar
Loading