From 30a5bc447cf94fe48440fb9a275c38e47cd9274c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Mon, 16 Aug 2021 16:29:15 +0200 Subject: [PATCH] i2c_master: minor, remove irrelevant comment --- i2c_master.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/i2c_master.c b/i2c_master.c index e2de25e..8fc17c5 100644 --- a/i2c_master.c +++ b/i2c_master.c @@ -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