How to set up my iic frequency?

Hello everyone, I have an iic device and need to ensure that its clock line (scl) clock frequency stays below 100kHZ, and is greater than 10khz, preferably around 40KHZ (currently I see the iic frequency through the oscilloscope is 100KHZ); currently, My driver already recognizes that the iic device exists on the iic bus. How do I set up my program and adjust my clock frequency? Ask for help~~~@rmackay9 @felipeviveiros @Lance_B @mfbs17 @ALL~~EVERYONE

I hope that only this device clock frequency is changed to 40khz, while other devices are still unchanged

Ouch, why 40kHz? And why is 100kHz not working?

My iic drive read and write smart battery (the clock frequency needs to be less than 100kzh), supports the clock frequency of the smbus protocol, and I successfully read and write to the slave device (smart battery) on another mcu and see it as the 40KHZ clock frequency; so I need to change the clock frequency of apm’s iic timing

Should Someone have done such a thing? Why didn’t anyone reply?:sob: