diff options
author | Karl Palsson <karlp@tweak.net.au> | 2015-10-24 04:07:20 +0300 |
---|---|---|
committer | Karl Palsson <karlp@tweak.net.au> | 2016-03-30 19:59:56 +0300 |
commit | 4c550648c3ca449ad1d5712c44001387a4c89229 (patch) | |
tree | 658331831187127937e9bccdba8cf40d75d72916 /include/libopencm3/stm32/common/adc_common_v2.h | |
parent | 1d090c840feb132c21323d1b531b5ee612f2710f (diff) |
stm32: adc-v2: pull up common register definitions
Diffstat (limited to 'include/libopencm3/stm32/common/adc_common_v2.h')
-rw-r--r-- | include/libopencm3/stm32/common/adc_common_v2.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/libopencm3/stm32/common/adc_common_v2.h b/include/libopencm3/stm32/common/adc_common_v2.h index ba067d06..6acacc86 100644 --- a/include/libopencm3/stm32/common/adc_common_v2.h +++ b/include/libopencm3/stm32/common/adc_common_v2.h @@ -35,6 +35,16 @@ specific memorymap.h header before including this header file.*/ #ifndef LIBOPENCM3_ADC_COMMON_V2_H #define LIBOPENCM3_ADC_COMMON_V2_H +/* ADC common (shared) registers */ +#define ADC_CSR(adc) MMIO32((adc) + 0x300 + 0x0) +#define ADC_CCR(adc) MMIO32((adc) + 0x300 + 0x8) +#define ADC_CDR(adc) MMIO32((adc) + 0x300 + 0xa) + +/* ADC_CCR Values -----------------------------------------------------------*/ +#define ADC_CCR_VBATEN (1 << 24) +#define ADC_CCR_TSEN (1 << 23) +#define ADC_CCR_VREFEN (1 << 22) + /* --- Function prototypes ------------------------------------------------- */ |