Description
In using the EEPROM driver for an I2C chipset, I ran into timeout issues on larger reads and writes.
Note that I am using an I2C clock of 100 kHz.
That's because the driver assumes an I2C clock of 400 kHz
ChibiOS-Contrib/os/hal/src/hal_ee24xx.c
Line 62 in fb67e50
Then uses that value to calculate the I2C timeout in
ChibiOS-Contrib/os/hal/src/hal_ee24xx.c
Lines 101 to 109 in fb67e50
See especially
ChibiOS-Contrib/os/hal/src/hal_ee24xx.c
Line 106 in fb67e50
There seems to be generalized code already
ChibiOS-Contrib/os/hal/src/hal_ee24xx.c
Lines 56 to 60 in fb67e50
but it is not in use.
I would like to clean up that driver and fix it. Would you accept a pull request?