1. 24 Nov, 2015 1 commit
    • Dave Hylands's avatar
      stmhal: Turn off DMA clocks when idle for 100 msec · b677f034
      Dave Hylands authored
      Turning on each DMA block increases the current consumption
      by about 8 mA. This code adds an idle timer for each DMA
      block and turns off the clocks when no streams are in use
      for 128 msec. Having a small timeout allows for improved
      performance when back-to-back transfers are being performed.
      
      The 128 msec is basically a guess.
      b677f034
  2. 07 Nov, 2015 1 commit
  3. 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
  4. 02 Aug, 2015 1 commit
  5. 29 Jul, 2015 2 commits
  6. 31 May, 2015 1 commit
  7. 20 Mar, 2015 1 commit
  8. 15 Mar, 2015 1 commit
  9. 15 Feb, 2015 1 commit
  10. 20 Jan, 2015 1 commit
  11. 01 Jan, 2015 1 commit
  12. 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
  13. 25 Aug, 2014 2 commits
  14. 28 Jun, 2014 1 commit
  15. 03 May, 2014 1 commit
    • Damien George's avatar
      Add license header to (almost) all files. · 04b9147e
      Damien George authored
      Blanket wide to all .c and .h files.  Some files originating from ST are
      difficult to deal with (license wise) so it was left out of those.
      
      Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
      04b9147e
  16. 21 Apr, 2014 1 commit
  17. 18 Apr, 2014 1 commit
    • Damien George's avatar
      stmhal: Big cleanup; merge gpio into Pin; make names consistent. · c66d86c5
      Damien George authored
      This is an attempt to clean up the Micro Python API on the pyboard.
      Gpio functionality is now in the Pin object, which seems more natural.
      Constants for MODE and PULL are now in pyb.Pin.  Names of some
      classes have been adjusted to conform to CamelCase.  Other
      miscellaneous changes and clean up here and there.
      c66d86c5
  18. 17 Apr, 2014 1 commit
  19. 16 Apr, 2014 1 commit
    • Damien George's avatar
      stmhal: Improve flash storage cache management. · 6d983539
      Damien George authored
      Internal flash used for the filesystem is now written (from the cache)
      only after a 5s delay, or when a file is closed, or when the drive is
      unmounted from the host.  This delay means that multiple writes can
      accumulate in the cache, and leads to less writes to the flash, making
      it last longer.
      
      It's implemented by a high-priority interrupt that takes care of flash
      erase and write, and flushing the cache.
      
      This is still only an interim solution for the flash filesystem.  It
      eventually needs to be replaced with something that uses less RAM for
      the cache, something that can use more of the flash, and something that
      does proper wear levelling.
      6d983539
  20. 02 Apr, 2014 1 commit
  21. 30 Mar, 2014 1 commit
    • Damien George's avatar
      stmhal: Implement selector for USB device mode; improve boot up. · 038df431
      Damien George authored
      Can now choose at boot up whether the USB device is CDC+MSC or CDC+HID.
      Choice is made by an option in boot.py, with default being CDC+MSC.
      HID+MSC is not currently supported, but should be easy to implement.
      
      Boot up now has ability to change the reset mode: hold down USR switch
      while booting and LEDs will count from 1 to 7 to indicate the boot mode.
      Release USR when correct mode is selected.  Current modes are 1 (normal
      boot), 2 (safe mode), 3 (reset FS mode).
      038df431
  22. 22 Mar, 2014 3 commits
  23. 15 Mar, 2014 2 commits
  24. 14 Mar, 2014 2 commits
  25. 13 Mar, 2014 2 commits
  26. 12 Mar, 2014 2 commits