increase I²C sink speed
This commit is contained in:
parent
e7d3a86e45
commit
319a783de0
2
main.c
2
main.c
|
@ -345,7 +345,7 @@ we will only be able to provide 1 extension block since we can only respond to o
|
|||
SCL_SNK_PU_PORT->CR1.reg |= SCL_SNK_PU_PIN; // switch pin to push pull
|
||||
SCL_SNK_PU_PORT->DDR.reg |= SCL_SNK_PU_PIN; // switch pin to output
|
||||
uint8_t i2c_rc = 1; // if the complete read succeeded
|
||||
if (!softi2c_master_setup(1)) { // start the I²C master to talk to sink
|
||||
if (!softi2c_master_setup(400)) { // start the I²C master to talk to sink
|
||||
i2c_rc = 2;
|
||||
goto i2c_end;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue