It takes 0.3 seconds for me to use I2C to set the register. It took too long.
How can I solve this problem?
The following is my I2C setting
i2cParams.bitRate = I2C_400kHz;
i2c = I2C_open(CONFIG_I2C_0, &i2cParams);
i2cTransaction.slaveAddress = ucDevAddr;
i2cTransaction.writeBuf = txBuffer;
i2cTransaction.writeCount = 2;
i2cTransaction.readBuf = rxBuffer;
i2cTransaction.readCount = 0;
txBuffer = Register;
txBuffer = Data;