1. 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
  2. 10 Nov, 2015 1 commit
  3. 09 Nov, 2015 2 commits
  4. 08 Nov, 2015 1 commit
  5. 07 Nov, 2015 2 commits
  6. 06 Nov, 2015 2 commits
  7. 02 Nov, 2015 1 commit
  8. 01 Nov, 2015 1 commit
  9. 31 Oct, 2015 3 commits
  10. 30 Oct, 2015 4 commits
  11. 29 Oct, 2015 3 commits
  12. 27 Oct, 2015 1 commit
  13. 25 Oct, 2015 1 commit
  14. 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
  15. 20 Oct, 2015 3 commits
  16. 19 Oct, 2015 6 commits
  17. 17 Oct, 2015 1 commit
  18. 13 Oct, 2015 1 commit
    • Damien George's avatar
      stmhal: Allow to set bits resolution for DAC; 8 is default, can have 12. · b5c43be1
      Damien George authored
      This patch allows to configure the DAC resolution in the constructor and
      in the init function, eg:
      
      dac = DAC(1, bits=12).
      
      The default resolution is 8 bits for backwards compatibility.  The bits
      sets the maximum value accepted by write and write_timed methods, being
      2**bits - 1.
      
      When using write_timed with 12-bit resolution, the input buffer is
      treated as an unsigned half-word array, typecode 'H'.
      
      See PR #1130 for discussion.
      b5c43be1
  19. 11 Oct, 2015 3 commits