1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 14:33:52 +01:00

cpu/stm32: put GPIO in ain before initializing the clocks

This commit is contained in:
Alexandre Abadie 2020-09-24 11:25:30 +02:00
parent e1ee49ebe2
commit 4613f840f4
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -154,14 +154,14 @@ void cpu_init(void)
#ifndef CPU_FAM_STM32WB
periph_clk_en(APB1, BIT_APB_PWREN);
#endif
/* initialize the system clock as configured in the periph_conf.h */
stmclk_init_sysclk();
#if defined(CPU_FAM_STM32F0) || defined(CPU_FAM_STM32F1) || \
defined(CPU_FAM_STM32F2) || defined(CPU_FAM_STM32F3) || \
defined(CPU_FAM_STM32F4) || defined(CPU_FAM_STM32F7) || \
defined(CPU_FAM_STM32L1)
_gpio_init_ain();
#endif
/* initialize the system clock as configured in the periph_conf.h */
stmclk_init_sysclk();
#ifdef MODULE_PERIPH_DMA
/* initialize DMA streams */
dma_init();