Larry Rothman,
Once again, with the original firmware there are no problems with the inclusion. I corrected the code, now nothing freezes.
void adc_init(void) {
rccEnableADC1(FALSE);
ADC->CCR = 0;
ADC1->CR |= ADC_CR_ADCAL;
ADC1->CR = ADC_CR_ADEN;
while (!(ADC1->ISR & ADC_ISR_ADRDY));
}