/* Initializes the BEEP function according to the specified parameters.  */
void BEEP_Init(BEEP_Frequency_TypeDef BEEP_Frequency)
/* Initializes the BEEP function according to the specified parameters.  */
void BEEP_Init(BEEP_Frequency_TypeDef BEEP_Frequency)
{
  assert_param(IS_BEEP_FREQUENCY(BEEP_Frequency));
  if ((BEEP->CSR2 & BEEP_CSR2_BEEPDIV) == BEEP_CSR2_BEEPDIV)
  {
    BEEP->CSR2 &= (uint8_t)(~BEEP_CSR2_BEEPDIV);
    BEEP->CSR2 |= BEEP_CALIBRATION_DEFAULT;
  }
  BEEP->CSR2 &= (uint8_t)(~BEEP_CSR2_BEEPSEL);
  BEEP->CSR2 |= (uint8_t)(BEEP_Frequency);
}