/* 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;
    FLEXIO_Type *flexioBase = base->flexioBase;
    timerDiv = (uint16_t)((srcClock_Hz / baudRate_Bps) / 2U - 1U);
    flexioBase->TIMCMP[base->timerIndex[1]] = timerDiv;
    base->baudrate = srcClock_Hz / (2U * ((uint32_t)timerDiv + 1U));
}