/* Configures the selected source to generate or not a global interrupt.  */
uint8_t IOE_GITConfig(uint8_t DeviceAddr, uint8_t Global_IT, FunctionalState NewState)
/* Configures the selected source to generate or not a global interrupt.  */
uint8_t IOE_GITConfig(uint8_t DeviceAddr, uint8_t Global_IT, FunctionalState NewState)
{
  uint8_t tmp = 0;
  tmp = I2C_ReadDeviceRegister(DeviceAddr, IOE_REG_INT_EN);
  if (NewState != DISABLE)
  {    
    tmp |= (uint8_t)Global_IT;  
  }
  else
  {    
    tmp &= ~(uint8_t)Global_IT;
  }
  I2C_WriteDeviceRegister(DeviceAddr, IOE_REG_INT_EN, tmp);
  return IOE_OK;  
}