From 41cad7c06587dcccb60ee2ec88dd5e2e5f016559 Mon Sep 17 00:00:00 2001 From: Vegard Lillevoll Date: Wed, 4 Apr 2018 13:59:39 +0200 Subject: [PATCH] stm32: adc-v2: Add ADC_CFGR1_AUTOFF --- include/libopencm3/stm32/common/adc_common_v2_single.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/libopencm3/stm32/common/adc_common_v2_single.h b/include/libopencm3/stm32/common/adc_common_v2_single.h index 6d8ae65f..a9f3cf12 100644 --- a/include/libopencm3/stm32/common/adc_common_v2_single.h +++ b/include/libopencm3/stm32/common/adc_common_v2_single.h @@ -49,6 +49,8 @@ specific memorymap.h header before including this header file.*/ /* ----- ADC registers values -----------------------------------------------*/ /* ADC_CFGR1 values */ #define ADC_CFGR1_WAIT (1<<14) +#define ADC_CFGR1_AUTOFF (1 << 15) + /* EXTSEL[2:0]: External trigger selection for regular group */ #define ADC_CFGR1_EXTSEL_SHIFT 6 #define ADC_CFGR1_EXTSEL (0x7 << ADC_CFGR1_EXTSEL_SHIFT)