Skip to content

Commit d3058d3

Browse files
Fixed F4 ADC typo as noted by @stevstrong in reply to issue #265
1 parent ccddc1f commit d3058d3

File tree

1 file changed

+2
-2
lines changed
  • STM32F4/cores/maple/libmaple

1 file changed

+2
-2
lines changed

STM32F4/cores/maple/libmaple/adc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ extern const adc_dev *ADC3;
166166
#define ADC_CR2_ALIGN_BIT 11
167167
#define ADC_CR2_JEXTTRIG_BIT 15
168168
#define ADC_CR2_EXTTRIG_BIT 20
169-
#define ADC_CR2_TSEREFE_BIT 23
169+
#define ADC_CR2_TSVREFE_BIT 23
170170
#ifdef STM32F2
171171
#define ADC_CR2_JSWSTART_BIT 22
172172
#define ADC_CR2_SWSTART_BIT 30
@@ -191,7 +191,7 @@ extern const adc_dev *ADC3;
191191
#define ADC_CR2_EXTTRIG BIT(ADC_CR2_EXTTRIG_BIT)
192192
#define ADC_CR2_JSWSTART BIT(ADC_CR2_JSWSTART_BIT)
193193
#define ADC_CR2_SWSTART BIT(ADC_CR2_SWSTART_BIT)
194-
#define ADC_CR2_TSEREFE BIT(ADC_CR2_TSEREFE_BIT)
194+
#define ADC_CR2_TSVREFE BIT(ADC_CR2_TSVREFE_BIT)
195195

196196
/* Sample time register 1 */
197197

0 commit comments

Comments
 (0)