aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/stm32g4.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stm32/stm32g4.c')
-rw-r--r--src/stm32/stm32g4.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stm32/stm32g4.c b/src/stm32/stm32g4.c
index 4ed8bc6c..aed9ed8f 100644
--- a/src/stm32/stm32g4.c
+++ b/src/stm32/stm32g4.c
@@ -43,6 +43,10 @@ lookup_clock_line(uint32_t periph_base)
.bit = 1 << pos};
} else {
+ if (periph_base == ADC12_COMMON_BASE)
+ return (struct cline){.en = &RCC->AHB2ENR,
+ .rst = &RCC->AHB2RSTR,
+ .bit = RCC_AHB2ENR_ADC12EN};
uint32_t pos = (periph_base - AHB2PERIPH_BASE) / 0x400;
return (struct cline){.en = &RCC->AHB2ENR,
.rst = &RCC->AHB2RSTR,