targets/TARGET_STMBLUE/Periph_Driver/src/BlueNRG1_sysCtrl.c
void SysCtrl_SelectXO(uint8_t XOFreq)
{  
  /* Check the parameters */
  assert_param(IS_XO_FREQ(XOFreq));

  if(XOFreq == XO_32MHZ) {
    SYSTEM_CTRL->CTRL_b.MHZ32_SEL = SET;
  }
  else if(XOFreq == XO_16MHZ) {   
    SYSTEM_CTRL->CTRL_b.MHZ32_SEL = RESET;
  }
}
/**
  * @brief  Enable disable the XO clock divider for the system control.
  * @param  XOFreq: configure the system for the correct XO external clock used, the value can be
*         @arg XO_32MHz enable the XO divider and expect a 32 MHz external clock.
*         @arg XO_16MHz disable the XO divider and expect a 16 MHz external clock.
  * @retval None
  */
@brief  Enable disable the XO clock divider for the system control.
@param  XOFreq: configure the system for the correct XO external clock used, the value can be
@arg XO_32MHz enable the XO divider and expect a 32 MHz external clock.
@arg XO_16MHz disable the XO divider and expect a 16 MHz external clock.
@retval None
@brief Enable disable the XO clock divider for the system control . @param XOFreq : configure the system for the correct XO external clock used the value can be @arg XO_32MHz enable the XO divider and expect a 32 MHz external clock . @arg XO_16MHz disable the XO divider and expect a 16 MHz external clock . @retval None
void SysCtrl_SelectXO(uint8_t XOFreq)
{  
  assert_param(IS_XO_FREQ(XOFreq));
  if(XOFreq == XO_32MHZ) {
    SYSTEM_CTRL->CTRL_b.MHZ32_SEL = SET;
  }
  else if(XOFreq == XO_16MHZ) {   
    SYSTEM_CTRL->CTRL_b.MHZ32_SEL = RESET;
  }
}
void SysCtrl_SelectXO ( uint8_t XOFreq ) { assert_param ( IS_XO_FREQ ( XOFreq ) ) ; if ( XOFreq == XO_32MHZ ) { SYSTEM_CTRL -> CTRL_b . MHZ32_SEL = SET ; } else if ( XOFreq == XO_16MHZ ) { SYSTEM_CTRL -> CTRL_b . MHZ32_SEL = RESET ; } }
@brief  Enable disable the XO clock divider for the system control.
@brief Enable disable the XO clock divider for the system control .
/* Check the parameters */