/* param base Pointer to FLEXIO_I2C_Type structure param baudRate_Bps the baud rate value in HZ param srcClock_Hz source clock in HZ  */
void FLEXIO_I2C_MasterSetBaudRate(FLEXIO_I2C_Type *base, uint32_t baudRate_Bps, uint32_t srcClock_Hz)
/* param base Pointer to FLEXIO_I2C_Type structure param baudRate_Bps the baud rate value in HZ param srcClock_Hz source clock in HZ  */
void FLEXIO_I2C_MasterSetBaudRate(FLEXIO_I2C_Type *base, uint32_t baudRate_Bps, uint32_t srcClock_Hz)
{
    uint16_t timerDiv = 0;
    uint16_t timerCmp = 0;
    FLEXIO_Type *flexioBase = base->flexioBase;
    timerDiv = srcClock_Hz / baudRate_Bps;
    timerDiv = timerDiv / 2 - 1U;
    timerCmp = flexioBase->TIMCMP[base->timerIndex[0]];
    timerCmp &= 0xFF00;
    timerCmp |= timerDiv;
    flexioBase->TIMCMP[base->timerIndex[0]] = timerCmp;
}