1. 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
  2. 11 Oct, 2015 4 commits
  3. 08 Oct, 2015 2 commits
  4. 06 Oct, 2015 1 commit
  5. 01 Oct, 2015 1 commit
  6. 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
  7. 12 Sep, 2015 1 commit
  8. 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
  9. 29 Aug, 2015 1 commit
  10. 17 Aug, 2015 1 commit
  11. 15 Aug, 2015 1 commit
  12. 13 Aug, 2015 1 commit
  13. 07 Aug, 2015 4 commits
  14. 05 Aug, 2015 3 commits
  15. 02 Aug, 2015 12 commits
  16. 29 Jul, 2015 4 commits