1. 06 Oct, 2016 2 commits
  2. 04 Oct, 2016 1 commit
  3. 01 Sep, 2016 1 commit
  4. 15 Aug, 2016 1 commit
  5. 30 Jul, 2016 1 commit
  6. 10 May, 2016 1 commit
  7. 14 Apr, 2016 1 commit
  8. 12 Apr, 2016 2 commits
  9. 25 Feb, 2016 1 commit
  10. 14 Feb, 2016 1 commit
  11. 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
  12. 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
  13. 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
  14. 17 Jan, 2016 1 commit
  15. 07 Jan, 2016 1 commit
  16. 19 Dec, 2015 1 commit
  17. 18 Dec, 2015 2 commits
  18. 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.
      1be0fde4
  19. 25 Nov, 2015 1 commit
  20. 08 Nov, 2015 1 commit
  21. 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.
      731f3592
  22. 20 Oct, 2015 1 commit
  23. 19 Oct, 2015 1 commit
  24. 11 Oct, 2015 1 commit
  25. 15 Sep, 2015 1 commit
  26. 07 Aug, 2015 1 commit
  27. 29 Jul, 2015 2 commits
  28. 27 Jul, 2015 1 commit
  29. 26 Jul, 2015 1 commit
  30. 24 May, 2015 1 commit
  31. 04 May, 2015 1 commit
  32. 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_pr...
      7f9d1d6a
  33. 04 Apr, 2015 2 commits
  34. 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.
      3cc17c69
    • 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.
      0ef01d0a