1. 15 Dec, 2016 1 commit
  2. 14 Dec, 2016 1 commit
  3. 21 Nov, 2016 1 commit
  4. 06 Oct, 2016 1 commit
  5. 21 Sep, 2016 1 commit
  6. 06 Sep, 2016 1 commit
  7. 29 Aug, 2016 1 commit
  8. 05 May, 2016 1 commit
  9. 15 Feb, 2016 1 commit
  10. 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
  11. 29 Jan, 2016 2 commits
    • Damien George's avatar
      stmhal: Make TIM3 available for use by the user. · ea89b80f
      Damien George authored
      TIM3 is no longer used by USB CDC for triggering outgoing data, so we
      can now make it available to the user.
      
      PWM fading on LED(4) is now gone, but will be reinstated in a new way.
      ea89b80f
    • Paul Sokolovsky's avatar
      py/runtime: mp_stack_ctrl_init() should be called immediately on startup. · d3b1f0b6
      Paul Sokolovsky authored
      Calling it from mp_init() is too late for some ports (like Unix), and leads
      to incomplete stack frame being captured, with following GC issues. So, now
      each port should call mp_stack_ctrl_init() on its own, ASAP after startup,
      and taking special precautions so it really was called before stack variables
      get allocated (because if such variable with a pointer is missed, it may lead
      to over-collecting (typical symptom is segfaulting)).
      d3b1f0b6
  12. 07 Dec, 2015 2 commits
    • Dave Hylands's avatar
      stmhal: Print exception information in nlr_jump_failed · f380904b
      Dave Hylands authored
      Currently nlr_jump_fail prints that there was an uncaught exception
      but nothing about the exception.
      This patch causes nlr_jump_failed to try to print the exception.
      Given that printf was called on the line above, I think that
      the call to mp_obj_print_exception has about as much likelyhood
      of succeeding as the printf does.
      f380904b
    • Dave Hylands's avatar
      stmhal: Execute boot.py and main.py when formatting the file system. · acc20841
      Dave Hylands authored
      When you use the USER button to perform a filesystem reset
      at boot time then it wipes out the filesystem and creates
      a new boot.py and main.py.  With this patch these files are
      executed after formatting, ensuring that pyb and machine modules
      get imported.
      acc20841
  13. 04 Dec, 2015 2 commits
  14. 23 Nov, 2015 1 commit
    • T S's avatar
      stmhal: Implement delayed RTC initialization with LSI fallback. · 86aa16be
      T S authored
      If RTC is already running at boot then it's left alone.  Otherwise, RTC is
      started at boot but startup function returns straight away.  RTC startup
      is then finished the first time it is used.  Fallback to LSI if LSE fails
      to start in a certain time.
      
      Also included:
       MICROPY_HW_CLK_LAST_FREQ
              hold pyb.freq() parameters in RTC backup reg
       MICROPY_HW_RTC_USE_US
              option to present datetime sub-seconds in microseconds
       MICROPY_HW_RTC_USE_CALOUT
              option to enable RTC calibration output
      
      CLK_LAST_FREQ and RTC_USE_CALOUT are enabled for PYBv1.0.
      86aa16be
  15. 09 Nov, 2015 1 commit
  16. 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
  17. 19 Oct, 2015 1 commit
  18. 11 Oct, 2015 1 commit
  19. 12 Sep, 2015 1 commit
  20. 05 Aug, 2015 2 commits
  21. 02 Aug, 2015 1 commit
  22. 29 Jul, 2015 1 commit
  23. 06 May, 2015 1 commit
  24. 04 Mar, 2015 1 commit
  25. 15 Feb, 2015 1 commit
  26. 13 Feb, 2015 4 commits
  27. 09 Jan, 2015 1 commit
  28. 07 Jan, 2015 1 commit
  29. 01 Jan, 2015 1 commit
  30. 25 Oct, 2014 1 commit
  31. 22 Oct, 2014 1 commit
  32. 21 Oct, 2014 1 commit
    • Damien George's avatar
      stmhal: Overhaul UART class to use read/write, and improve it. · 481d714b
      Damien George authored
      UART object now uses a stream-like interface: read, readall, readline,
      readinto, readchar, write, writechar.
      
      Timeouts are configured when the UART object is initialised, using
      timeout and timeout_char keyword args.
      
      The object includes optional read buffering, using interrupts.  You can set
      the buffer size dynamically using read_buf_len keyword arg.  A size of 0
      disables buffering.
      481d714b
  33. 06 Oct, 2014 1 commit