/* Configures the Interrupt line active state and format (level/edge)  */
uint8_t IOE_ITOutConfig(uint8_t Polarity, uint8_t Type)
/* Configures the Interrupt line active state and format (level/edge)  */
uint8_t IOE_ITOutConfig(uint8_t Polarity, uint8_t Type)
{
  uint8_t tmp = 0; 
  tmp = I2C_ReadDeviceRegister(IOE_1_ADDR, IOE_REG_INT_CTRL);
  tmp &= ~(uint8_t)0x06;
  tmp |= (uint8_t)(Polarity | Type);
  I2C_WriteDeviceRegister(IOE_1_ADDR, IOE_REG_INT_CTRL, tmp);
  return IOE_OK;  
}