summaryrefslogtreecommitdiff
path: root/adc/adc_f3.h
diff options
context:
space:
mode:
authorKarl Palsson <karlp@etactica.com>2021-09-17 16:39:47 +0200
committerKarl Palsson <karlp@tweak.net.au>2022-01-20 19:01:51 +0100
commit2d8a1c0489da61996bb4787a53353585d0413a03 (patch)
treea281cbbd46dd8390657aa8c5ce456b681a6c2377 /adc/adc_f3.h
parent3da2028a769f03ea3ea4fa1b3d69d0bf19af3b1e (diff)
adc: stm32f3: expand and verify
Working with dma and timers. This preserves the somewhat dubious decision that ADC clock for F1 and F3 should be 12Mhz. It can always be overridden later.
Diffstat (limited to 'adc/adc_f3.h')
-rw-r--r--adc/adc_f3.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/adc/adc_f3.h b/adc/adc_f3.h
index 1f9f98e..194432d 100644
--- a/adc/adc_f3.h
+++ b/adc/adc_f3.h
@@ -52,9 +52,11 @@ static ADC_t& ADC1 = *(ADC_t*)0x50000000;
static ADC_t& ADC2 = *(ADC_t*)0x50000100;
static ADC_t& ADC3 = *(ADC_t*)0x50000400;
static ADC_t& ADC4 = *(ADC_t*)0x50000500;
+static ADC_COMMON_t& ADC_COMMON1 = *(ADC_COMMON_t*)0x50000300;
+static ADC_COMMON_t& ADC_COMMON3 = *(ADC_COMMON_t*)0x50000700;
#elif defined(STM32WB)
static ADC_t& ADC1 = *(ADC_t*)0x50040000;
static ADC_COMMON_t& ADC_COMMON = *(ADC_COMMON_t*)0x50040300;
#endif
-#endif
+#endif