Thank you for your help, it certainly guided me along the right path, the process I came up with as a result (in semi pseudo code) is as follows:processorFrequency and desiredFrequency are provided, prescaler starts at 0, ticksPerI2cClockValid start...
I'm writing a driver for the I2C modules on a custom STM32L452RE. The driver configure function needs to be able to take a desired operation speed and calculate the values for the timing register (I2C_TIMINGR) accordingly. Thanks in advance for your ...