diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2015-08-10 16:41:25 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2015-08-10 16:41:25 +0000 |
commit | 7264719108ee2686ec23e26210b5cda9113c2a5a (patch) | |
tree | aa4e0f075c65a4d35eef10b62f859453e5e9c1d9 /os/hal/ports/STM32 | |
parent | 3ef88384a3497556c5b55d82942537593e7a09f1 (diff) | |
download | ChibiOS-7264719108ee2686ec23e26210b5cda9113c2a5a.tar.gz ChibiOS-7264719108ee2686ec23e26210b5cda9113c2a5a.tar.bz2 ChibiOS-7264719108ee2686ec23e26210b5cda9113c2a5a.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8204 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32')
-rw-r--r-- | os/hal/ports/STM32/LLD/ADCv2/adc_lld.h | 9 |
1 files changed, 8 insertions, 1 deletions
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)
/** @} */
/**
|