doc: avoid usage of rcc_peripheral_enable_clock

Use the simpler, safer rcc_periph_clock_enable instead
This commit is contained in:
Karl Palsson
2019-12-12 20:35:57 +00:00
parent 4a9ba30138
commit 557e7aa50f
3 changed files with 4 additions and 5 deletions

View File

@@ -46,7 +46,7 @@
*
* @code
* gpio_mode_setup(GPIOA, GPIO_MODE_ANALOG, GPIO_PUPD_NONE, GPIO1);
* rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_ADC1EN);
* rcc_periph_clock_enable(RCC_ADC1);
* adc_set_clk_prescale(RCC_CFGR_ADCPRE_BY2);
* adc_disable_scan_mode(ADC1);
* adc_set_single_conversion_mode(ADC1);