MaJerle / stm32fxxx-hal-libraries

Libraries for STM32F4xx and STM32F7xx built on HAL drivers from ST
MIT License
760 stars 436 forks source link

!tm:adc:TM_ADC_InitADC:RCC - avoid all ADC clocks enable #19

Closed alexrayne closed 7 years ago

alexrayne commented 7 years ago

current implementation TM_ADC_init enables all ADC clocks, this patch enables only initianed ADC clock

alexrayne commented 7 years ago

What do you mean? `#if defined(ADC1)

if (ADCx == ADC1)

__HAL_RCC_ADC1_CLK_ENABLE();  //<--- should i insert more tabs here?

endif

`

MaJerle commented 7 years ago
if (check) {
    statement;
}

Use brackets always with 4 spaces indent.

alexrayne commented 7 years ago

this is very ugly rule, imho, but as you govern...