aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/stm32l4.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stm32/stm32l4.c')
-rw-r--r--src/stm32/stm32l4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm32/stm32l4.c b/src/stm32/stm32l4.c
index 0555ae3e..7db15fff 100644
--- a/src/stm32/stm32l4.c
+++ b/src/stm32/stm32l4.c
@@ -42,7 +42,7 @@ lookup_clock_line(uint32_t periph_base)
.rst = &RCC->AHB1RSTR,
.bit = 1 << pos};
- } else if (periph_base == ADC1_BASE) {
+ } else if (periph_base == ADC12_COMMON_BASE) {
return (struct cline){.en = &RCC->AHB2ENR,
.rst = &RCC->AHB2RSTR,
.bit = RCC_AHB2ENR_ADCEN};