/* Initialize the mfxstm32l152 and configure the needed hardware resources.  */
void mfxstm32l152_Init(uint16_t DeviceAddr)
/* Initialize the mfxstm32l152 and configure the needed hardware resources.  */
void mfxstm32l152_Init(uint16_t DeviceAddr)
{
  uint8_t instance;
  uint8_t empty;
  instance = mfxstm32l152_GetInstance(DeviceAddr);
  if(instance == 0xFF)
  {
    empty = mfxstm32l152_GetInstance(0);
    if(empty < MFXSTM32L152_MAX_INSTANCE)
    {
      mfxstm32l152[empty] = DeviceAddr;
      MFX_IO_Init();
    }
  }
  mfxstm32l152_SetIrqOutPinPolarity(DeviceAddr, MFXSTM32L152_OUT_PIN_POLARITY_HIGH);
  mfxstm32l152_SetIrqOutPinType(DeviceAddr, MFXSTM32L152_OUT_PIN_TYPE_PUSHPULL);
}