Merge pull request #4302 from haukepetersen/fix_f1_i2cbusy

cpu/stm32f1: fixed i2c driver
cc430
Hauke Petersen 7 years ago
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…
Cancel
Save