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