Skip to content

Commit 796dc93

Browse files
committed
re-added previously deleted EXTSEL defines
1 parent 42659eb commit 796dc93

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • STM32F1/system/libmaple/stm32f1/include/series

STM32F1/system/libmaple/stm32f1/include/series/adc.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ extern const struct adc_dev *ADC3;
8686
#define ADC_CR2_RSTCAL (1U << ADC_CR2_RSTCAL_BIT)
8787
#define ADC_CR2_DMA (1U << ADC_CR2_DMA_BIT)
8888
#define ADC_CR2_ALIGN (1U << ADC_CR2_ALIGN_BIT)
89+
#define ADC_CR2_JEXTSEL 0x7000
8990
#define ADC_CR2_JEXTSEL_TIM1_TRGO (0x0 << 12)
9091
#define ADC_CR2_JEXTSEL_TIM1_CC4 (0x1 << 12)
9192
#define ADC_CR2_JEXTSEL_TIM2_TRGO (0x2 << 12)
@@ -95,6 +96,7 @@ extern const struct adc_dev *ADC3;
9596
#define ADC_CR2_JEXTSEL_EXTI15 (0x6 << 12)
9697
#define ADC_CR2_JEXTSEL_JSWSTART (0x7 << 12)
9798
#define ADC_CR2_JEXTTRIG (1U << ADC_CR2_JEXTTRIG_BIT)
99+
#define ADC_CR2_EXTSEL 0xE0000
98100
#define ADC_CR2_EXTSEL_TIM1_CC1 (0x0 << 17)
99101
#define ADC_CR2_EXTSEL_TIM1_CC2 (0x1 << 17)
100102
#define ADC_CR2_EXTSEL_TIM1_CC3 (0x2 << 17)

0 commit comments

Comments
 (0)