[riot-commits] [RIOT-OS/RIOT] cead7a: cpu/sam0/i2c: Handle read with I2C_NOSTOP flag

MrKevinWeiss noreply at github.com
Fri Jul 2 12:25:22 CEST 2021


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: cead7a587747652f28d0dd3eca3e00e8fb460e35
      https://github.com/RIOT-OS/RIOT/commit/cead7a587747652f28d0dd3eca3e00e8fb460e35
  Author: MrKevinWeiss <weiss.kevin604 at gmail.com>
  Date:   2021-07-01 (Thu, 01 Jul 2021)

  Changed paths:
    M cpu/sam0_common/periph/i2c.c

  Log Message:
  -----------
  cpu/sam0/i2c: Handle read with I2C_NOSTOP flag

When using the I2C_NOSTOP flag the bus should remain in control.
The current check assumes it must go to idle when reading.
This adds a condition checks if the nostop flag is active
and expects the bus status to be the owner of the bus.


  Commit: 4cdf93da786e0e66ffd5d093391b9003c5f59708
      https://github.com/RIOT-OS/RIOT/commit/4cdf93da786e0e66ffd5d093391b9003c5f59708
  Author: Kevin "Tristate Tom" Weiss <weiss.kevin604 at gmail.com>
  Date:   2021-07-02 (Fri, 02 Jul 2021)

  Changed paths:
    M cpu/sam0_common/periph/i2c.c

  Log Message:
  -----------
  Merge pull request #16605 from MrKevinWeiss/pr/sam0i2cfix

cpu/sam0/i2c: Handle read with I2C_NOSTOP flag


Compare: https://github.com/RIOT-OS/RIOT/compare/c5a101269550...4cdf93da786e


More information about the commits mailing list