We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35b434b commit 19ef39aCopy full SHA for 19ef39a
os/hal/ports/STM32/LLD/ADCv4/hal_adc_lld.h
@@ -109,10 +109,16 @@
109
110
#define ADC_CFGR_RES_MASK (7U << 2U)
111
#define ADC_CFGR_RES_16BITS (0U << 2U)
112
+#define ADC_CFGR_RES_10BITS (3U << 2U)
113
+#if !defined(STM32_ENFORCE_H7_REV_XY)
114
+#define ADC_CFGR_RES_14BITS (5U << 2U)
115
+#define ADC_CFGR_RES_12BITS (6U << 2U)
116
+#define ADC_CFGR_RES_8BITS (7U << 2U)
117
+#else
118
#define ADC_CFGR_RES_14BITS (1U << 2U)
119
#define ADC_CFGR_RES_12BITS (2U << 2U)
-#define ADC_CFGR_RES_10BITS (3U << 2U)
120
#define ADC_CFGR_RES_8BITS (4U << 2U)
121
+#endif
122
123
#define ADC_CFGR_EXTSEL_MASK (15U << 5U)
124
#define ADC_CFGR_EXTSEL_SRC(n) ((n) << 5U)
0 commit comments