1. 27 Sep, 2016 1 commit
  2. 21 Sep, 2016 1 commit
  3. 08 Sep, 2016 1 commit
  4. 06 Sep, 2016 1 commit
  5. 03 Sep, 2016 1 commit
    • Damien George's avatar
      stmhal: Add machine.WDT class. · 76c366df
      Damien George authored
      Usage:
      
          import machine
          wdt = machine.WDT(0, 5000) # 5 second timeout
          wdt.feed()
      
      Thanks to Moritz for the initial implementation.
      76c366df
  6. 05 May, 2016 1 commit
  7. 17 Apr, 2016 1 commit
  8. 12 Apr, 2016 1 commit
  9. 29 Jan, 2016 1 commit
  10. 07 Jan, 2016 1 commit
  11. 19 Dec, 2015 1 commit
  12. 18 Dec, 2015 1 commit
    • Paul Sokolovsky's avatar
      ports: Rename "machine" module to "umachine". · 2eb844e0
      Paul Sokolovsky authored
      To let unix port implement "machine" functionality on Python level, and
      keep consistent naming in other ports (baremetal ports will use magic
      module "symlinking" to still load it on "import machine").
      
      Fixes #1701.
      2eb844e0
  13. 23 Nov, 2015 2 commits
    • Damien George's avatar
    • 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
  14. 14 Nov, 2015 1 commit
    • Paul Sokolovsky's avatar
      stmhal/modmachine: Initial attempt to add I2C & SPI classes. · 16d42368
      Paul Sokolovsky authored
      In new hardware API, these classes implement master modes of interfaces,
      and "mode" parameter is not accepted. Trying to implement new HW API
      in terms of older pyb module leaves variuos corner cases:
      
      In new HW API, I2C(1) means "I2C #1 in master mode" (? depends on
      interpretation), while in old API, it means "I2C #1, with no settings
      changes".
      
      For I2C class, it's easy to make mode optional, because that's last
      positional param, but for SPI, there's "baudrate" after it (which
      is inconsistent with I2C, which requires "baudrate" to be kwonly-arg).
      16d42368
  15. 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
  16. 30 Oct, 2015 1 commit
  17. 19 Oct, 2015 2 commits
  18. 07 Aug, 2015 1 commit
  19. 05 Aug, 2015 2 commits
  20. 29 Jul, 2015 2 commits
  21. 22 Mar, 2015 2 commits
  22. 04 Mar, 2015 2 commits
  23. 13 Feb, 2015 2 commits
  24. 21 Jan, 2015 1 commit
  25. 07 Jan, 2015 1 commit
  26. 01 Jan, 2015 1 commit
  27. 27 Dec, 2014 1 commit
  28. 08 Dec, 2014 1 commit
  29. 30 Nov, 2014 1 commit
  30. 29 Nov, 2014 1 commit
  31. 02 Nov, 2014 1 commit
  32. 22 Oct, 2014 1 commit
  33. 09 Oct, 2014 1 commit