/* Configures the I2C Bus Timeout A (SCL Timeout when TIDLE = 0 or Bus idle SCL and SDA high when TIDLE = 1).  */
void I2C_TimeoutAConfig(I2C_TypeDef *I2Cx, uint16_t Timeout)
/* Configures the I2C Bus Timeout A (SCL Timeout when TIDLE = 0 or Bus idle SCL and SDA high when TIDLE = 1).  */
void I2C_TimeoutAConfig(I2C_TypeDef *I2Cx, uint16_t Timeout)
{
  uint32_t tmpreg = 0;
  assert_param(IS_I2C_1_PERIPH(I2Cx));
  assert_param(IS_I2C_TIMEOUT(Timeout));
  tmpreg = I2Cx->TIMEOUTR;
  tmpreg &= (uint32_t)~((uint32_t)I2C_TIMEOUTR_TIMEOUTA);
  tmpreg |= (uint32_t)((uint32_t)Timeout & I2C_TIMEOUTR_TIMEOUTA) ;
  I2Cx->TIMEOUTR = tmpreg;
}