aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmaple/adc.c3
-rw-r--r--libmaple/adc.h3
2 files changed, 3 insertions, 3 deletions
diff --git a/libmaple/adc.c b/libmaple/adc.c
index 16ca8bc..843636d 100644
--- a/libmaple/adc.c
+++ b/libmaple/adc.c
@@ -43,12 +43,14 @@ adc_dev adc1 = {
.regs = ADC1_BASE,
.clk_id = RCC_ADC1
};
+/** ADC1 device. */
const adc_dev *ADC1 = &adc1;
adc_dev adc2 = {
.regs = ADC2_BASE,
.clk_id = RCC_ADC2
};
+/** ADC2 device. */
const adc_dev *ADC2 = &adc2;
#ifdef STM32_HIGH_DENSITY
@@ -56,6 +58,7 @@ adc_dev adc3 = {
.regs = ADC3_BASE,
.clk_id = RCC_ADC3
};
+/** ADC3 device. */
const adc_dev *ADC3 = &adc3;
#endif
diff --git a/libmaple/adc.h b/libmaple/adc.h
index 55a7dc4..41b2096 100644
--- a/libmaple/adc.h
+++ b/libmaple/adc.h
@@ -69,12 +69,9 @@ typedef struct adc_dev {
rcc_clk_id clk_id; /**< RCC clock information */
} adc_dev;
-/** ADC1 device. */
extern const adc_dev *ADC1;
-/** ADC2 device. */
extern const adc_dev *ADC2;
#ifdef STM32_HIGH_DENSITY
-/** ADC3 device. */
extern const adc_dev *ADC3;
#endif