Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • stable
  • extraversion
  • early-display
  • variant-emmc-nvme-boot
  • 2024-07-19
  • 2024-06-30
  • 2023-10-18
  • 2023-10-10
  • 2023-07-04
  • 2023-01-25
  • v3
  • variant-emmc-nvme-boot
  • 2020-06-01
14 results

i2c

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Andrew Dyer authored
    This patch adds a #define to optionally change the behaviour of
    i2c_read() in soft_i2c.c to send an I2C repeated start instead of a
    stop-start between sending the device address pointer write and
    reading back the data.  The current behaviour is retained as the
    default.
    
    While most devices will work either way, I have a smart battery(*)
    that requires repeated start, and someone at some point found a
    device that required a stop-start.
    
    (*) http://www.inspired-energy.com/Standard_Products/NL2054/NL2054%20Rev1.0%20Data%20Sheet.pdf
    
    
    
    Signed-off-by: default avatarAndrew Dyer <adyer@righthandtech.com>
    2ac6985a
    History