Browse Source

stm32: adc.h regression: Add missing register definitions

The adc unification pull left out some of the shortcut definitions for
ADC1.  See 27bc12de61
pull/292/head
Ken Sarkies 11 years ago
committed by Karl Palsson
parent
commit
1f5ce647ff
  1. 14
      include/libopencm3/stm32/common/adc_common_v1.h

14
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)

Loading…
Cancel
Save