/* writes the data to data register of I2C module when \ifstart one the start signal will be sent followed by the \data when \ifstart zero only the \data will be send  */
void tls_i2c_write_byte(u8 data, u8 ifstart)
/* writes the data to data register of I2C module when \ifstart one the start signal will be sent followed by the \data when \ifstart zero only the \data will be send  */
void tls_i2c_write_byte(u8 data, u8 ifstart)
{	tls_reg_write32(HR_I2C_TX_RX, data);
	if(ifstart)
		tls_reg_write32(HR_I2C_CR_SR, I2C_CR_STA | I2C_CR_WR);
	else
		tls_reg_write32(HR_I2C_CR_SR, I2C_CR_WR);
	while(tls_reg_read32(HR_I2C_CR_SR) & I2C_SR_TIP);
}