I was trying to figure out how to go slower and found a typo, either that or the world's fastest I2C bus!
#elif F_BUS == 16000000
if (frequency < 400000) {
port().F = 0x20; // 100 kHz
} else if (frequency < 1000000) {
port().F = 0x07; // 400 kHz
} else {
port().F = 0x00; // 800 MHz
}
port().FLT = 1;
Obviously it should be khz and it doesn't ever need to ever be fixed for functionality.
Any chance of a very slow I2C bus frequency (20khz or slower?) for debugging in a future release?
#elif F_BUS == 16000000
if (frequency < 400000) {
port().F = 0x20; // 100 kHz
} else if (frequency < 1000000) {
port().F = 0x07; // 400 kHz
} else {
port().F = 0x00; // 800 MHz
}
port().FLT = 1;
Obviously it should be khz and it doesn't ever need to ever be fixed for functionality.
Any chance of a very slow I2C bus frequency (20khz or slower?) for debugging in a future release?