From 1f5ce647ff6bc367197d855595310c85abece0d5 Mon Sep 17 00:00:00 2001 From: Ken Sarkies Date: Wed, 12 Mar 2014 12:04:31 +1030 Subject: [PATCH] stm32: adc.h regression: Add missing register definitions The adc unification pull left out some of the shortcut definitions for ADC1. See 27bc12de61f8c75425efcf8a61d8ca4a5e4b01b5 --- include/libopencm3/stm32/common/adc_common_v1.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/libopencm3/stm32/common/adc_common_v1.h b/include/libopencm3/stm32/common/adc_common_v1.h index ed0cc360..3ab2dfd8 100644 --- a/include/libopencm3/stm32/common/adc_common_v1.h +++ b/include/libopencm3/stm32/common/adc_common_v1.h @@ -74,6 +74,20 @@ specific memorymap.h header before including this header file.*/ #define ADC1_JOFR3 ADC_JOFR3(ADC1) #define ADC1_JOFR4 ADC_JOFR4(ADC1) +#define ADC1_HTR ADC_HTR(ADC1) +#define ADC1_LTR ADC_LTR(ADC1) + +#define ADC1_SQR1 ADC_SQR1(ADC1) +#define ADC1_SQR2 ADC_SQR2(ADC1) +#define ADC1_SQR3 ADC_SQR3(ADC1) +#define ADC1_JSQR ADC_JSQR(ADC1) + +#define ADC1_JDR1 ADC_JDR1(ADC1) +#define ADC1_JDR2 ADC_JDR2(ADC1) +#define ADC1_JDR3 ADC_JDR3(ADC1) +#define ADC1_JDR4 ADC_JDR4(ADC1) +#define ADC1_DR ADC_DR(ADC1) + #if defined(ADC2_BASE) #define ADC2 ADC2_BASE #define ADC2_SR ADC_SR(ADC2)