targets/TARGET_STMBLUE/Periph_Driver/src/BlueNRG1_sysCtrl.c
void SysCtrl_PeripheralClockCmd(uint32_t PeriphClock, FunctionalState NewState)
{
  /* Check the parameters */
  assert_param(IS_CLOCK_PERIPH(PeriphClock));
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  
  if (NewState == ENABLE) {
    SET_BIT(CKGEN_SOC->CLOCK_EN, PeriphClock);
  }
  else {
    CLEAR_BIT(CKGEN_SOC->CLOCK_EN, PeriphClock);
  }
}
/**
  * @brief  Enables the clock for the specified peripheral.
  * @param  PeriphClock: Peripheral to be enabled, this value can be
  *         @arg CLOCK_PERIPH_GPIO Clock of GPIO peripheral
  *         @arg CLOCK_PERIPH_NVM Clock of NVM peripheral
  *         @arg CLOCK_PERIPH_SYS_CONTROL Clock of SYSTEM CONTROL peripheral
  *         @arg CLOCK_PERIPH_UART Clock of UART peripheral
  *         @arg CLOCK_PERIPH_SPI Clock of SPI peripheral
  *         @arg CLOCK_PERIPH_WDG Clock of WATCHDOG peripheral
  *         @arg CLOCK_PERIPH_ADC Clock of ADC peripheral
  *         @arg CLOCK_PERIPH_I2C1 Clock of I2C1 peripheral
  *         @arg CLOCK_PERIPH_I2C2 Clock of I2C2 peripheral
  *         @arg CLOCK_PERIPH_MTFX1 Clock of MFTX1 peripheral
  *         @arg CLOCK_PERIPH_MTFX2 Clock of MFTX2 peripheral
  *         @arg CLOCK_PERIPH_RTC Clock of RTC peripheral
  *         @arg CLOCK_PERIPH_DMA Clock of DMA peripheral
  *         @arg CLOCK_PERIPH_RNG Clock of RNG peripheral
  *         @arg CLOCK_PERIPH_PKA Clock of PKA peripheral
  * @param NewState: New state of the peripheral clock.
  *   This parameter can be: ENABLE or DISABLE.
  * @retval None
  */
@brief  Enables the clock for the specified peripheral.
@brief Enables the clock for the specified peripheral .
void SysCtrl_PeripheralClockCmd(uint32_t PeriphClock, FunctionalState NewState)
{
  assert_param(IS_CLOCK_PERIPH(PeriphClock));
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  if (NewState == ENABLE) {
    SET_BIT(CKGEN_SOC->CLOCK_EN, PeriphClock);
  }
  else {
    CLEAR_BIT(CKGEN_SOC->CLOCK_EN, PeriphClock);
  }
}
void SysCtrl_PeripheralClockCmd ( uint32_t PeriphClock , FunctionalState NewState ) { assert_param ( IS_CLOCK_PERIPH ( PeriphClock ) ) ; assert_param ( IS_FUNCTIONAL_STATE ( NewState ) ) ; if ( NewState == ENABLE ) { SET_BIT ( CKGEN_SOC -> CLOCK_EN , PeriphClock ) ; } else { CLEAR_BIT ( CKGEN_SOC -> CLOCK_EN , PeriphClock ) ; } }
@brief  Enables the clock for the specified peripheral.
@brief Enables the clock for the specified peripheral .
/* Check the parameters */