/* Adjusts the Multi Speed oscillator (MSI) calibration value.  */
void RCC_SetMsiCalibValue(uint8_t MSICalibrationValue)
/* Adjusts the Multi Speed oscillator (MSI) calibration value.  */
void RCC_SetMsiCalibValue(uint8_t MSICalibrationValue)
{
    uint32_t tmpregister = 0;
    tmpregister = RCC->CTRLSTS;
    tmpregister &= CTRLSTS_MSITRIM_MASK;
    tmpregister |= (uint32_t)MSICalibrationValue << 15;
    RCC->CTRLSTS = tmpregister;
}