Skip to content

Commit 19ef39a

Browse files
author
gdisirio
committed
#1117 qmk#3.
git-svn-id: http://svn.osdn.net/svnroot/chibios/trunk@13780 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
1 parent 35b434b commit 19ef39a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

os/hal/ports/STM32/LLD/ADCv4/hal_adc_lld.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,16 @@
109109

110110
#define ADC_CFGR_RES_MASK (7U << 2U)
111111
#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
112118
#define ADC_CFGR_RES_14BITS (1U << 2U)
113119
#define ADC_CFGR_RES_12BITS (2U << 2U)
114-
#define ADC_CFGR_RES_10BITS (3U << 2U)
115120
#define ADC_CFGR_RES_8BITS (4U << 2U)
121+
#endif
116122

117123
#define ADC_CFGR_EXTSEL_MASK (15U << 5U)
118124
#define ADC_CFGR_EXTSEL_SRC(n) ((n) << 5U)

0 commit comments

Comments
 (0)