mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #13905 from jeromecoutant/PR_L422
STM32L4: ADC compilation issue with L422pull/13918/head
commit
134c39cb7e
|
@ -92,7 +92,9 @@ static void _analogin_init_direct(analogin_t *obj, const PinMap *pinmap)
|
|||
|
||||
// Enable ADC clock
|
||||
__HAL_RCC_ADC_CLK_ENABLE();
|
||||
#if defined(RCC_CCIPR_ADCSEL)
|
||||
__HAL_RCC_ADC_CONFIG(RCC_ADCCLKSOURCE_SYSCLK);
|
||||
#endif
|
||||
|
||||
if (HAL_ADC_Init(&obj->handle) != HAL_OK) {
|
||||
error("Cannot initialize ADC\n");
|
||||
|
|
Loading…
Reference in New Issue