libraries/mbed/targets/cmsis/TARGET_STM/TARGET_NUCLEO_F103RB/stm32f10x_rcc.c
/**
  * @brief  Configures the PREDIV2 division factor.
  * @note 
  *   - This function must be used only when both PLL2 and PLL3 are disabled.
  *   - This function applies only to STM32 Connectivity line devices.
  * @param  RCC_PREDIV2_Div: specifies the PREDIV2 clock division factor.
  *   This parameter can be RCC_PREDIV2_Divx where x:[1,16]
  * @retval None
  */
@brief  Configures the PREDIV2 division factor.
@note
- This function must be used only when both PLL2 and PLL3 are disabled.
- This function applies only to STM32 Connectivity line devices.
@param  RCC_PREDIV2_Div: specifies the PREDIV2 clock division factor.
This parameter can be RCC_PREDIV2_Divx where x:[1,16]
@retval None
@brief Configures the PREDIV2 division factor . @note - This function must be used only when both PLL2 and PLL3 are disabled . - This function applies only to STM32 Connectivity line devices . @param RCC_PREDIV2_Div : specifies the PREDIV2 clock division factor . This parameter can be RCC_PREDIV2_Divx where x : [ 1 16 ] @retval None
void RCC_PREDIV2Config(uint32_t RCC_PREDIV2_Div)
{
  uint32_t tmpreg = 0;
  assert_param(IS_RCC_PREDIV2(RCC_PREDIV2_Div));
  tmpreg = RCC->CFGR2;
  tmpreg &= ~CFGR2_PREDIV2;
  tmpreg |= RCC_PREDIV2_Div;
  RCC->CFGR2 = tmpreg;
}
void RCC_PREDIV2Config ( uint32_t RCC_PREDIV2_Div ) { uint32_t tmpreg = 0 ; assert_param ( IS_RCC_PREDIV2 ( RCC_PREDIV2_Div ) ) ; tmpreg = RCC -> CFGR2 ; tmpreg &= ~ CFGR2_PREDIV2 ; tmpreg |= RCC_PREDIV2_Div ; RCC -> CFGR2 = tmpreg ; }
@brief  Configures the PREDIV2 division factor.
@brief Configures the PREDIV2 division factor .
/* Check the parameters */ /* Clear PREDIV2[3:0] bits */ /* Set the PREDIV2 division factor */ /* Store the new value */