[riot-commits] [RIOT-OS/RIOT] b5db0d: cpu/stm32/i2c: Fix error flag clearing in sr1

Sebastian Meiling noreply at github.com
Fri Jun 21 11:43:11 CEST 2019


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: b5db0dab2d185b402ee83ddd296e98e4264732eb
      https://github.com/RIOT-OS/RIOT/commit/b5db0dab2d185b402ee83ddd296e98e4264732eb
  Author: MrKevinWeiss <weiss.kevin604 at gmail.com>
  Date:   2019-06-20 (Thu, 20 Jun 2019)

  Changed paths:
    M cpu/stm32_common/periph/i2c_2.c

  Log Message:
  -----------
  cpu/stm32/i2c: Fix error flag clearing in sr1

This commit fixes the clearing of a error condition after read.
This causes the incorrect errorcodes if the register is read
then an error occurs, then it is cleared.
By clearing only after the error is processed the bug is fixed.
This can be tested by reading a i2c slave that is not there.


  Commit: 44d09f3ca0ee9f6244ad421a3d89d1d3f9f1f1f7
      https://github.com/RIOT-OS/RIOT/commit/44d09f3ca0ee9f6244ad421a3d89d1d3f9f1f1f7
  Author: Sebastian Meiling <s at mlng.net>
  Date:   2019-06-21 (Fri, 21 Jun 2019)

  Changed paths:
    M cpu/stm32_common/periph/i2c_2.c

  Log Message:
  -----------
  Merge pull request #11728 from MrKevinWeiss/pr/stm/i2c2/fix

cpu/stm32/i2c: Fix error flag clearing in sr1


Compare: https://github.com/RIOT-OS/RIOT/compare/eb6fc6a17e27...44d09f3ca0ee


More information about the commits mailing list