1. 24 Nov, 2015 9 commits
  2. 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
  3. 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
  4. 10 Nov, 2015 1 commit
  5. 09 Nov, 2015 2 commits
  6. 08 Nov, 2015 1 commit
  7. 07 Nov, 2015 2 commits
  8. 06 Nov, 2015 2 commits
  9. 02 Nov, 2015 1 commit
  10. 01 Nov, 2015 1 commit
  11. 31 Oct, 2015 3 commits
  12. 30 Oct, 2015 4 commits
  13. 29 Oct, 2015 3 commits
  14. 27 Oct, 2015 1 commit
  15. 25 Oct, 2015 1 commit
  16. 24 Oct, 2015 3 commits
    • Paul Sokolovsky's avatar
      stmhal: Typo fix in comment. · 4a9c60cd
      Paul Sokolovsky authored
      4a9c60cd
    • Paul Sokolovsky's avatar
      stmhal/ffconf.h: Include py/mpconfig.h. · 81a1e172
      Paul Sokolovsky authored
      mpconfigport.h is a private, partial header not providing correct settings
      unless included by py/mpconfig.h.
      81a1e172
    • Paul Sokolovsky's avatar
      Makefiles: Remove duplicate object files when linking. · 0dbd928c
      Paul Sokolovsky authored
      Scenario: module1 depends on some common file from lib/, so specifies it
      in its SRC_MOD, and the same situation with module2, then common file
      from lib/ eventually ends up listed twice in $(OBJ), which leads to link
      errors.
      
      Make is equipped to deal with such situation easily, quoting the manual:
      "The value of $^ omits duplicate prerequisites, while $+ retains them and
      preserves their order." So, just use $^ consistently in all link targets.
      0dbd928c
  17. 20 Oct, 2015 3 commits