1. 01 Sep, 2016 1 commit
  2. 15 Aug, 2016 1 commit
  3. 30 Jul, 2016 1 commit
  4. 10 May, 2016 1 commit
  5. 14 Apr, 2016 1 commit
  6. 12 Apr, 2016 2 commits
  7. 25 Feb, 2016 1 commit
  8. 14 Feb, 2016 1 commit
  9. 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
  10. 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
  11. 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.
  12. 17 Jan, 2016 1 commit
  13. 07 Jan, 2016 1 commit
  14. 19 Dec, 2015 1 commit
  15. 18 Dec, 2015 2 commits
  16. 09 Dec, 2015 1 commit
    • neilh10's avatar
      stmhal: Enable two USB phys to be supported together. · 1be0fde4
      neilh10 authored
      This is refactoring to enable support for the two USB PHYs available on
      some STM32F4 processors to be used at the same time. The F405/7 & F429
      have two USB PHYs, others such as the F411 only have one PHY.
      This has been tested separately on a pyb10 (USB_FS PHY) and F429DISC
      (USB_HS PHY) to be able to invoke a REPL/USB.  I have modified a PYBV10
      to support two PHYs.
      The long term objective is to support a 2nd USB PHY to be brought up as a
      USB HOST, and possibly a single USB PHY to be OTG.
  17. 25 Nov, 2015 1 commit
  18. 08 Nov, 2015 1 commit
  19. 31 Oct, 2015 1 commit
    • Damien George's avatar
      all: Add py/mphal.h and use it in all ports. · 731f3592
      Damien George authored
      py/mphal.h contains declarations for generic mp_hal_XXX functions, such
      as stdio and delay/ticks, which ports should provide definitions for.  A
      port will also provide mphalport.h with further HAL declarations.
  20. 20 Oct, 2015 1 commit
  21. 19 Oct, 2015 1 commit
  22. 11 Oct, 2015 1 commit
  23. 15 Sep, 2015 1 commit
  24. 07 Aug, 2015 1 commit
  25. 29 Jul, 2015 2 commits
  26. 27 Jul, 2015 1 commit
  27. 26 Jul, 2015 1 commit
  28. 24 May, 2015 1 commit
  29. 04 May, 2015 1 commit
  30. 16 Apr, 2015 1 commit
    • Damien George's avatar
      py: Overhaul and simplify printf/pfenv mechanism. · 7f9d1d6a
      Damien George authored
      Previous to this patch the printing mechanism was a bit of a tangled
      mess.  This patch attempts to consolidate printing into one interface.
      All (non-debug) printing now uses the mp_print* family of functions,
      mainly mp_printf.  All these functions take an mp_print_t structure as
      their first argument, and this structure defines the printing backend
      through the "print_strn" function of said structure.
      Printing from the uPy core can reach the platform-defined print code via
      two paths: either through mp_sys_stdout_obj (defined pert port) in
      conjunction with mp_stream_write; or through the mp_plat_print structure
      which uses the MP_PLAT_PRINT_STRN macro to define how string are printed
      on the platform.  The former is only used when MICROPY_PY_IO is defined.
      With this new scheme printing is generally more efficient (less layers
      to go through, less arguments to pass), and, given an mp_print_t*
      structure, one can call mp_print_str for efficiency instead of
      mp_printf("%s", ...).  Code size is also reduced by around 200 bytes on
      Thumb2 archs.
  31. 04 Apr, 2015 2 commits
  32. 20 Mar, 2015 2 commits
    • stijn's avatar
      py: Allow retrieving a function's __name__. · 3cc17c69
      stijn authored
      Disabled by default.  Enabled on unix and stmhal ports.
    • Paul Sokolovsky's avatar
      py: Implement core of OrderedDict type. · 0ef01d0a
      Paul Sokolovsky authored
      Given that there's already support for "fixed table" maps, which are
      essentially ordered maps, the implementation of OrderedDict just extends
      "fixed table" maps by adding an "is ordered" flag and add/remove
      operations, and reuses 95% of objdict code, just making methods tolerant
      to both dict and OrderedDict.
      Some things are missing so far, like CPython-compatible repr and comparison.
      OrderedDict is Disabled by default; enabled on unix and stmhal ports.
  33. 14 Mar, 2015 1 commit
  34. 02 Mar, 2015 1 commit
  35. 22 Feb, 2015 1 commit