increase I²C sink speed

This commit is contained in:
King Kévin 2022-07-11 18:50:20 +02:00
parent e7d3a86e45
commit 319a783de0
1 changed files with 1 additions and 1 deletions

2
main.c
View File

@ -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;
}