stm32f0: adc: external trigger selection to unshifted

Cleanup one function at a time.  Use the correct doxygen references, use
unshifted forms in user facing apis.  Yes, only the trigger at the
moment, as the polarity is shared.

Signed-off-by: Karl Palsson <karlp@tweak.au>
This commit is contained in:
Karl Palsson
2023-02-02 22:47:44 +00:00
parent 69e4ade399
commit e54650fba4
2 changed files with 9 additions and 10 deletions

View File

@@ -78,8 +78,7 @@
/* EXTSEL[2:0]: External trigger selection for regular group */
#define ADC_CFGR1_EXTSEL_SHIFT 6
#define ADC_CFGR1_EXTSEL (0x7 << ADC_CFGR1_EXTSEL_SHIFT)
#define ADC_CFGR1_EXTSEL_VAL(x) ((x) << ADC_CFGR1_EXTSEL_SHIFT)
#define ADC_CFGR1_EXTSEL_MASK 0x7
/** @defgroup adc_cfgr1_extsel ADC external trigger selection values
*@{*/
#define ADC_CFGR1_EXTSEL_TIM1_TRGO 0x0