1. 01 Nov, 2015 1 commit
  2. 31 Oct, 2015 3 commits
  3. 30 Oct, 2015 4 commits
  4. 29 Oct, 2015 3 commits
  5. 27 Oct, 2015 1 commit
  6. 25 Oct, 2015 1 commit
  7. 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
  8. 20 Oct, 2015 3 commits
  9. 19 Oct, 2015 6 commits
  10. 17 Oct, 2015 1 commit
  11. 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
  12. 11 Oct, 2015 4 commits
  13. 08 Oct, 2015 2 commits
  14. 06 Oct, 2015 1 commit
  15. 01 Oct, 2015 1 commit
  16. 15 Sep, 2015 2 commits
    • Tom Soulanille's avatar
      py/objslice: Make slice attributes (start/stop/step) readable. · aeb62f9a
      Tom Soulanille authored
      Configurable with MICROPY_PY_BUILTINS_SLICE_ATTRS.  Disabled by default.
      aeb62f9a
    • Damien George's avatar
      stmhal: Use polling, not DMA, for 1 byte SPI transfers. · d80174d7
      Damien George authored
      There is an issue sending 1 byte on the SPI bus using DMA, but it only
      occurs when the transmit is done for the first time after initialising
      the SPI and DMA peripherals.  All other cases (sending 2 or more bytes,
      doing send_recv, doing recv first) work okay.  We sidestep this issue by
      using polling (not DMA) for all 1 byte transfers.  This is fine because
      a 1 byte transfer can't be interrupted and doesn't need the benefits of
      DMA (and using polling for this case is more efficient).
      
      Resolves #1456.
      d80174d7
  17. 12 Sep, 2015 1 commit
  18. 03 Sep, 2015 1 commit
    • Tony Abboud's avatar
      stmhal: add option to query for the current usb mode · 8d8fdcb4
      Tony Abboud authored
      Fetch the current usb mode and return a string representation when
      pyb.usb_mode() is called with no args. The possible string values are interned
      as qstr's. None will be returned if an incorrect mode is set.
      8d8fdcb4
  19. 29 Aug, 2015 1 commit