1. 03 Feb, 2017 1 commit
  2. 31 Jan, 2017 1 commit
    • Damien George's avatar
      stmhal: Initial implementation of multithreading, currently disabled. · 882ec01e
      Damien George authored
      This patch brings the _thread module to stmhal/pyboard.  There is a very
      simple round-robin thread scheduler, which is disabled if there is only
      one thread (for efficiency when threading is not used).
      
      The scheduler currently switches threads at a rate of 250Hz using the
      systick timer and the pend-SV interrupt.
      
      The GIL is disabled so one must be careful to use lock objects to prevent
      concurrent access of objects.
      
      The threading is disabled by default, one can enabled it with the config
      option MICROPY_PY_THREAD to test it out.
      882ec01e
  3. 30 Jan, 2017 1 commit
  4. 27 Jan, 2017 1 commit
    • Damien George's avatar
      stmhal: Convert to use VFS sub-system and new ooFatFs component. · 84c614e7
      Damien George authored
      This patch makes the following configuration changes:
      - MICROPY_FSUSERMOUNT is disabled, removing old mounting infrastructure
      - MICROPY_VFS is enabled, giving new VFS sub-system
      - MICROPY_VFS_FAT is enabled, giving uos.VfsFat type
      - MICROPY_FATFS_OO is enabled, to use new ooFatFs lib, R0.12b
      
      User facing API should be almost unchanged.  Most notable changes are
      removal of os.mkfs (use os.VfsFat.mkfs instead) and pyb.mount doesn't
      allow unmounting by passing None as the device.
      84c614e7
  5. 24 Jan, 2017 1 commit
  6. 22 Jan, 2017 2 commits
  7. 23 Dec, 2016 1 commit
  8. 15 Dec, 2016 3 commits
  9. 13 Dec, 2016 1 commit
  10. 08 Dec, 2016 2 commits
  11. 05 Dec, 2016 1 commit
  12. 02 Dec, 2016 1 commit
  13. 23 Nov, 2016 1 commit
  14. 20 Nov, 2016 1 commit
  15. 16 Nov, 2016 1 commit
    • Damien George's avatar
      py: Factor out persistent-code reader into separate files. · 6b239c27
      Damien George authored
      Implementations of persistent-code reader are provided for POSIX systems
      and systems using FatFS.  Macros to use these are MICROPY_READER_POSIX and
      MICROPY_READER_FATFS respectively.  If an alternative implementation is
      needed then a port can define the function mp_reader_new_file.
      6b239c27
  16. 17 Oct, 2016 1 commit
  17. 14 Oct, 2016 1 commit
  18. 06 Oct, 2016 2 commits
  19. 04 Oct, 2016 1 commit
  20. 01 Sep, 2016 1 commit
  21. 15 Aug, 2016 1 commit
  22. 30 Jul, 2016 1 commit
  23. 10 May, 2016 1 commit
  24. 14 Apr, 2016 1 commit
  25. 12 Apr, 2016 2 commits
  26. 25 Feb, 2016 1 commit
  27. 14 Feb, 2016 1 commit
  28. 10 Feb, 2016 1 commit
    • Damien George's avatar
      extmod/fsusermount: Support mounting of multiple block devices. · b33a7705
      Damien George authored
      This patch adds support to fsusermount for multiple block devices
      (instead of just one).  The maximum allowed is fixed at compile time by
      the size of the fs_user_mount array accessed via MP_STATE_PORT, which
      in turn is set by MICROPY_FATFS_VOLUMES.
      
      With this patch, stmhal (which is still tightly coupled to fsusermount)
      is also modified to support mounting multiple devices   And the flash and
      SD card are now just two block devices that are mounted at start up if
      they exist (and they have special native code to make them more
      efficient).
      b33a7705
  29. 03 Feb, 2016 1 commit
    • Doug Currie's avatar
      py/mpz: Complete implementation of mpz_{and,or,xor} for negative args. · 2e2e15ce
      Doug Currie authored
      For these 3 bitwise operations there are now fast functions for
      positive-only arguments, and general functions for arbitrary sign
      arguments (the fast functions are the existing implementation).
      
      By default the fast functions are not used (to save space) and instead
      the general functions are used for all operations.
      
      Enable MICROPY_OPT_MPZ_BITWISE to use the fast functions for positive
      arguments.
      2e2e15ce
  30. 26 Jan, 2016 1 commit
    • Damien George's avatar
      extmod/modurandom: Add some extra random functions. · a53af6c8
      Damien George authored
      Functions added are:
      - randint
      - randrange
      - choice
      - random
      - uniform
      
      They are enabled with configuration variable
      MICROPY_PY_URANDOM_EXTRA_FUNCS, which is disabled by default.  It is
      enabled for unix coverage build and stmhal.
      a53af6c8
  31. 17 Jan, 2016 1 commit
  32. 07 Jan, 2016 1 commit
  33. 19 Dec, 2015 1 commit
  34. 18 Dec, 2015 1 commit