1. 25 Jan, 2019 1 commit
  2. 24 Jan, 2019 1 commit
  3. 23 Jan, 2019 3 commits
  4. 21 Jan, 2019 2 commits
  5. 17 Jan, 2019 1 commit
    • Damien George's avatar
      esp32/Makefile: Use system provided math library rather than uPy one. · eb446ec2
      Damien George authored
      The ESP IDF system already provides a math library, and that one is likely
      to be better tuned to the Xtensa architecture.  The IDF components are also
      tested against its own math library, so best not to override it.  Using the
      system provided library also allows to easily switch to double-precision
      floating point by changing MICROPY_FLOAT_IMPL to MICROPY_FLOAT_IMPL_DOUBLE.
      eb446ec2
  6. 16 Jan, 2019 2 commits
  7. 11 Jan, 2019 1 commit
  8. 10 Jan, 2019 5 commits
  9. 04 Jan, 2019 2 commits
  10. 29 Dec, 2018 9 commits
  11. 27 Dec, 2018 1 commit
  12. 21 Dec, 2018 2 commits
    • Damien George's avatar
      py/mpconfig: Move MICROPY_VERSION macros to static ones in mpconfig.h. · 7cd59c5b
      Damien George authored
      It's more robust to have the version defined statically in a header file,
      rather than dynamically generating it via git using a git tag.  In case
      git doesn't exist, or a different source control tool is used, it's
      important to still have the uPy version number available.
      7cd59c5b
    • Andrew Leech's avatar
      stm32/main: Add board config option to enable/disable mounting SD card. · ce0c5811
      Andrew Leech authored
      The new option MICROPY_HW_SDCARD_MOUNT_AT_BOOT can now be defined to 0 in
      mpconfigboard.h to allow SD hardware to be enabled but not auto-mounted at
      boot.  This feature is enabled by default to retain previous behaviour.
      
      Previously, if an SD card is enabled in hardware it is also used to boot
      from.  While this can be disabled with a SKIPSD file on internal flash,
      this wont be available at first boot or if the internal flash gets
      corrupted.
      ce0c5811
  13. 20 Dec, 2018 2 commits
    • Paul Sokolovsky's avatar
      py/gc: Adjust gc_alloc() signature to be able to accept multiple flags. · 5ed578e5
      Paul Sokolovsky authored
      The older "bool has_finaliser" gets recast as GC_ALLOC_FLAG_HAS_FINALISER=1
      so this is a backwards compatible change to the signature.  Since bool gets
      implicitly converted to 1 this patch doesn't include conversion of all
      calls.
      5ed578e5
    • Paul Sokolovsky's avatar
      py/objarray: Introduce "memview_offset" alias for "free" field of object · a261d8b6
      Paul Sokolovsky authored
      Both mp_type_array and mp_type_memoryview use the same object structure,
      mp_obj_array_t, but for the case of memoryview, some fields, e.g. "free",
      have different meaning.  As the "free" field is also a bitfield, assume
      that (anonymous) union can't be used here (for the concerns of possible
      compatibility issues with wide array of toolchains), and just add a field
      alias using a #define.  As it's a define, it should be a selective
      identifier, so use verbose "memview_offset" to avoid any clashes.
      a261d8b6
  14. 15 Dec, 2018 3 commits
  15. 13 Dec, 2018 2 commits
  16. 12 Dec, 2018 3 commits
    • Paul Sokolovsky's avatar
      d4d4bc58
    • Damien George's avatar
      tools/mpy-tool.py: Fix calc of opcode size for opcodes with map caching. · 814d580a
      Damien George authored
      Following an equivalent fix to py/bc.c.  The reason the incorrect values
      for the opcode constants were not previously causing a bug is because they
      were never being used: these opcodes always have qstr arguments so the part
      of the code that was comparing them would never be reached.
      
      Thanks to @malinah for finding the problem and providing the initial patch.
      814d580a
    • Damien George's avatar
      py/bc: Fix calculation of opcode size for opcodes with map caching. · 6bf8ecfe
      Damien George authored
      All 4 opcodes that can have caching bytes also have qstrs, so the test for
      them must go in the qstr part of the code.  The reason this incorrect
      calculation of the opcode size did not lead to a bug is because the caching
      byte is at the end of the opcode (byte, qstr, qstr, cache) and is always
      0x00 when saving/loading, so was just treated as a single byte no-op
      opcode.  Hence these opcodes were being saved/loaded/decoded correctly.
      
      Thanks to @malinah for finding the problem and providing the initial patch.
      6bf8ecfe