/* The macro is used to set STOP condition of I2C Bus.  */
void I2C_STOP(I2C_T *i2c)
/* The macro is used to set STOP condition of I2C Bus.  */
void I2C_STOP(I2C_T *i2c)
{
    (i2c)->CTL0 |= (I2C_CTL0_SI_Msk | I2C_CTL0_STO_Msk);
    while (i2c->CTL0 & I2C_CTL0_STO_Msk)
    {
    }
}