stm32:f0/g0/l0: adc: Add EXTSEL defines
Add definitions for all the specific options, as is done for other families. Reviewed-by: Karl Palsson <karlp@tweak.au> (Added extra g0 definitions that were missed)
This commit is contained in:
@@ -67,6 +67,19 @@
|
||||
#define ADC_CFGR1_EXTSEL (0x7 << ADC_CFGR1_EXTSEL_SHIFT)
|
||||
#define ADC_CFGR1_EXTSEL_VAL(x) ((x) << ADC_CFGR1_EXTSEL_SHIFT)
|
||||
|
||||
/** @defgroup adc_cfgr1_extsel ADC external trigger selection values
|
||||
*@{*/
|
||||
#define ADC_CFGR1_EXTSEL_TIM6_TRGO 0x0
|
||||
#define ADC_CFGR1_EXTSEL_TIM21_CH2 0x1
|
||||
#define ADC_CFGR1_EXTSEL_TIM2_TRGO 0x2
|
||||
#define ADC_CFGR1_EXTSEL_TIM2_CH4 0x3
|
||||
#define ADC_CFGR1_EXTSEL_TIM21_TRGO 0x4
|
||||
#define ADC_CFGR1_EXTSEL_TIM22_TRGO 0x4
|
||||
#define ADC_CFGR1_EXTSEL_TIM2_CH3 0x5
|
||||
#define ADC_CFGR1_EXTSEL_TIM3_TRGO 0x6
|
||||
#define ADC_CFGR1_EXTSEL_EXTI11 0x7
|
||||
/**@}*/
|
||||
|
||||
/* ADC_CFGR2 Values ---------------------------------------------------------*/
|
||||
|
||||
#define ADC_CFGR2_CKMODE_SHIFT 30
|
||||
|
||||
Reference in New Issue
Block a user