mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #4302 from haukepetersen/fix_f1_i2cbusy
cpu/stm32f1: fixed i2c driver
This commit is contained in:
commit
4cb4d294d0
@ -451,6 +451,8 @@ static inline void _stop(I2C_TypeDef *dev)
|
||||
while (!(dev->SR1 & I2C_SR1_BTF));
|
||||
/* send STOP condition */
|
||||
dev->CR1 |= I2C_CR1_STOP;
|
||||
/* wait until transmission is complete */
|
||||
while (dev->SR2 & I2C_SR2_BUSY);
|
||||
}
|
||||
|
||||
#if I2C_0_EN
|
||||
|
Loading…
Reference in New Issue
Block a user