• 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
machine_i2c.c 9.45 KB