i2c_master: minor, remove irrelevant comment

This commit is contained in:
King Kévin 2021-08-16 16:29:15 +02:00
parent 3afd4eac87
commit 30a5bc447c
1 changed files with 0 additions and 3 deletions

View File

@ -88,9 +88,6 @@ enum i2c_master_rc i2c_master_start(void)
// don't check BUSY flag as this might be for a re-start
I2C_CR2 |= I2C_CR2_START; // sent start condition
// in theory, when the START condition is sent, CR2_START is cleared, SR1_SB is set, and SR3_MSL is sent
// in practice this is not synchronous, and the TRM doesn't document it
I2C_SR2 = 0; // clear error flags
rim(); // enable interrupts
while ((I2C_CR2 & I2C_CR2_START) || !(I2C_SR1 & I2C_SR1_SB) || !(I2C_SR3 & I2C_SR3_MSL)) { // wait until start condition has been accepted, send, and we are in aster mode