/* Initializes the OPAMP peripheral according to the specified parameters in OPAMP_InitStruct.  */
void OPAMP_Init(uint32_t OPAMP_Selection, OPAMP_InitTypeDef *OPAMP_InitStruct)
/* Initializes the OPAMP peripheral according to the specified parameters in OPAMP_InitStruct.  */
void OPAMP_Init(uint32_t OPAMP_Selection, OPAMP_InitTypeDef *OPAMP_InitStruct)
{
  uint32_t tmpreg = 0;
  assert_param(IS_OPAMP_ALL_PERIPH(OPAMP_Selection));
  assert_param(IS_OPAMP_INVERTING_INPUT(OPAMP_InitStruct->OPAMP_InvertingInput));
  assert_param(IS_OPAMP_NONINVERTING_INPUT(OPAMP_InitStruct->OPAMP_NonInvertingInput));
  tmpreg = *(__IO uint32_t *) (OPAMP_BASE + OPAMP_Selection);
  tmpreg &= (uint32_t) (OPAMP_CSR_DEFAULT_MASK);
  tmpreg |= (uint32_t)(OPAMP_InitStruct->OPAMP_InvertingInput | OPAMP_InitStruct->OPAMP_NonInvertingInput);
  *(__IO uint32_t *) (OPAMP_BASE + OPAMP_Selection) = tmpreg;
}