From b600996c6a075ea7f7dca4f952a302d73329c94a Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Thu, 3 May 2012 15:19:13 -0400 Subject: STM32F1: adc: Tweaks for XL-density MCUs. Signed-off-by: Marti Bolivar --- libmaple/stm32f1/include/series/adc.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libmaple/stm32f1/include/series') diff --git a/libmaple/stm32f1/include/series/adc.h b/libmaple/stm32f1/include/series/adc.h index 1798e55..45a5e9d 100644 --- a/libmaple/stm32f1/include/series/adc.h +++ b/libmaple/stm32f1/include/series/adc.h @@ -43,7 +43,7 @@ extern const struct adc_dev *ADC1; extern const struct adc_dev *ADC2; -#ifdef STM32_HIGH_DENSITY +#if defined(STM32_HIGH_DENSITY) || defined(STM32_XL_DENSITY) extern const struct adc_dev *ADC3; #endif @@ -55,10 +55,8 @@ extern const struct adc_dev *ADC3; #define ADC1_BASE ((struct adc_reg_map*)0x40012400) /** ADC2 register map base pointer. */ #define ADC2_BASE ((struct adc_reg_map*)0x40012800) -#ifdef STM32_HIGH_DENSITY /** ADC3 register map base pointer. */ #define ADC3_BASE ((struct adc_reg_map*)0x40013C00) -#endif /* * Register bit definitions -- cgit v1.2.3