I am using MSP432P401R and wanted to increase the I2C frequency from 100kHz(Standard) to 400kHz(Fast).
In the Wire library for arduino, there is a function Wire.setclock(). Has anybody written such a function for energia? Because it is not there in energia.
I went through the wire and twi libraries and found the following,
In wire library, Wire.endTransmission calls a fucntion in twi library, twi_writeTo() which has the following line of code,
UCBzCTL1 |= UCSSEL_2; // SMCLK
Is this the line of code that sets the clock speed?
Also in the twi.h lib