From 7264719108ee2686ec23e26210b5cda9113c2a5a Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 10 Aug 2015 16:41:25 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8204 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/LLD/ADCv2/adc_lld.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'os/hal/ports/STM32/LLD') diff --git a/os/hal/ports/STM32/LLD/ADCv2/adc_lld.h b/os/hal/ports/STM32/LLD/ADCv2/adc_lld.h index e67ceafbf..c9dda342f 100644 --- a/os/hal/ports/STM32/LLD/ADCv2/adc_lld.h +++ b/os/hal/ports/STM32/LLD/ADCv2/adc_lld.h @@ -54,7 +54,14 @@ * @name Triggers selection * @{ */ -#define ADC_CR2_EXTSEL_SRC(n) ((n) << 24) /**< @brief Trigger source. */ +#define ADC_CR2_EXTEN_MASK (3U << 28U) +#define ADC_CR2_EXTEN_DISABLED (0U << 28U) +#define ADC_CR2_EXTEN_RISING (1U << 28U) +#define ADC_CR2_EXTEN_FALLING (2U << 28U) +#define ADC_CR2_EXTEN_BOTH (3U << 28U) + +#define ADC_CR2_EXTSEL_MASK (15U << 24U) +#define ADC_CR2_EXTSEL_SRC(n) ((n) << 24U) /** @} */ /** -- cgit v1.2.3