/* Enable the interrupt mode for the selected IT source.  */
int32_t MFXSTM32L152_EnableITSource(MFXSTM32L152_Object_t *pObj, uint8_t Source)
/* Enable the interrupt mode for the selected IT source.  */
int32_t MFXSTM32L152_EnableITSource(MFXSTM32L152_Object_t *pObj, uint8_t Source)
{
  int32_t ret = MFXSTM32L152_OK;
  uint8_t tmp;
  if (mfxstm32l152_read_reg(&pObj->Ctx, MFXSTM32L152_REG_ADR_IRQ_SRC_EN, &tmp, 1) != MFXSTM32L152_OK)
  {
    ret = MFXSTM32L152_ERROR;
  }
  else
  {
    tmp |= Source;
    if (mfxstm32l152_write_reg(&pObj->Ctx, MFXSTM32L152_REG_ADR_IRQ_SRC_EN, &tmp, 1) != MFXSTM32L152_OK)
    {
      ret = MFXSTM32L152_ERROR;
    }
  }
  return ret;
}