LPI2C_Init (struct LPI2C_Type * baseAddr)
{
  <bb 2> :
  # DEBUG BEGIN_STMT
  LPI2C_Set_MasterSoftwareReset (baseAddr, 1);
  # DEBUG BEGIN_STMT
  LPI2C_Set_SlaveSoftwareReset (baseAddr, 1);
  # DEBUG BEGIN_STMT
  baseAddr->MCR = 0;
  # DEBUG BEGIN_STMT
  baseAddr->SCR = 0;
  return;

}


LPI2C_Set_SlaveSoftwareReset (struct LPI2C_Type * baseAddr, boolean enable)
{
  uint32 regValue;
  long unsigned int iftmp.1;

  <bb 2> :
  # DEBUG BEGIN_STMT
  regValue = baseAddr->SCR;
  # DEBUG BEGIN_STMT
  regValue = regValue & 4294967293;
  # DEBUG BEGIN_STMT
  if (enable != 0)
    goto <bb 3>; [INV]
  else
    goto <bb 4>; [INV]

  <bb 3> :
  iftmp.1 = 2;
  goto <bb 5>; [INV]

  <bb 4> :
  iftmp.1 = 0;

  <bb 5> :
  regValue = iftmp.1 | regValue;
  # DEBUG BEGIN_STMT
  baseAddr->SCR = regValue;
  return;

}


LPI2C_Set_MasterSoftwareReset (struct LPI2C_Type * baseAddr, boolean enable)
{
  uint32 regValue;
  long unsigned int iftmp.0;

  <bb 2> :
  # DEBUG BEGIN_STMT
  regValue = baseAddr->MCR;
  # DEBUG BEGIN_STMT
  regValue = regValue & 4294967293;
  # DEBUG BEGIN_STMT
  if (enable != 0)
    goto <bb 3>; [INV]
  else
    goto <bb 4>; [INV]

  <bb 3> :
  iftmp.0 = 2;
  goto <bb 5>; [INV]

  <bb 4> :
  iftmp.0 = 0;

  <bb 5> :
  regValue = iftmp.0 | regValue;
  # DEBUG BEGIN_STMT
  baseAddr->MCR = regValue;
  return;

}


