File tree Expand file tree Collapse file tree
STM32F1/system/libmaple/stm32f1/include/series Expand file tree Collapse file tree Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments