1. 21 May, 2019 1 commit
    • Andrew Leech's avatar
      stm32/i2c: Make timeout for hardware I2C configurable. · ed2b6ea0
      Andrew Leech authored
      Previously the hardware I2C timeout was hard coded to 50ms which isn't
      guaranteed to be enough depending on the clock stretching specs of the I2C
      device(s) in use.
      
      This patch ensures the hardware I2C implementation honors the existing
      timeout argument passed to the machine.I2C constructor.  The default
      timeout for software and hardware I2C is now 50ms.
      ed2b6ea0
  2. 20 May, 2019 11 commits
  3. 17 May, 2019 4 commits
  4. 15 May, 2019 6 commits
  5. 14 May, 2019 4 commits
  6. 13 May, 2019 4 commits
  7. 10 May, 2019 2 commits
  8. 09 May, 2019 4 commits
  9. 08 May, 2019 2 commits
  10. 07 May, 2019 2 commits
    • Damien George's avatar
      stm32: Move factory reset files and code to separate source file. · 97753a1b
      Damien George authored
      The new function factory_reset_make_files() populates the given filesystem
      with the default factory files.  It is defined with weak linkage so it can
      be overridden by a board.
      
      This commit also brings some minor user-facing changes:
      
      - boot.py is now no longer created unconditionally if it doesn't exist, it
        is now only created when the filesystem is formatted and the other files
        are populated (so, before, if the user deleted boot.py it would be
        recreated at next boot; now it won't be).
      
      - pybcdc.inf and README.txt are only created if the board has USB, because
        they only really make sense if the filesystem is exposed via USB.
      97753a1b
    • Damien George's avatar
      stm32/machine_uart: Change default UART timeout to 0, for non blocking. · 34942d0a
      Damien George authored
      It's more common to need non-blocking behaviour when reading from a UART,
      rather than having a large timeout like 1000ms (the original behaviour).
      With a large timeout it's 1) likely that the function will read forever if
      characters keep trickling it; or 2) the function will unnecessarily wait
      when characters come sporadically, eg at a REPL prompt.
      34942d0a