/* Selects the clock source to output on MCO pin.  */
void RCC_MCOConfig(uint8_t RCC_MCO)
/* Selects the clock source to output on MCO pin.  */
void RCC_MCOConfig(uint8_t RCC_MCO)
{
    assert_param(IS_RCC_MCO(RCC_MCO));
    if(RCC_MCO <= RCC_MCO_PLLCLK_Div2)
    {
        *(__IO uint8_t *) CFGR_BYTE4_ADDRESS = RCC_MCO;
    }
    else
    {
        *(__IO uint8_t *) CFGR_BYTE4_ADDRESS = RCC_MCO_PLLCLK_Div2;
    }
    RCC->RCC_MCO_VAL = RCC_MCO - 6;
}