1. 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
  2. 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
  3. 15 Dec, 2018 3 commits
  4. 13 Dec, 2018 2 commits
  5. 12 Dec, 2018 9 commits
  6. 10 Dec, 2018 18 commits
  7. 07 Dec, 2018 2 commits
  8. 06 Dec, 2018 2 commits