/* Selects the clock source to output on MCO2 pin(PC9).  */
void RCC_MCO2Config(uint32_t RCC_MCO2Source, uint32_t RCC_MCO2Div)
/* Selects the clock source to output on MCO2 pin(PC9).  */
void RCC_MCO2Config(uint32_t RCC_MCO2Source, uint32_t RCC_MCO2Div)
{
  uint32_t tmpreg = 0;
  assert_param(IS_RCC_MCO2SOURCE(RCC_MCO2Source));
  assert_param(IS_RCC_MCO2DIV(RCC_MCO2Div));
  tmpreg = RCC->CFGR;
  tmpreg &= CFGR_MCO2_RESET_MASK;
  tmpreg |= RCC_MCO2Source | RCC_MCO2Div;
  RCC->CFGR = tmpreg;  
}