stm32f1/adc: Kill redundant ADC_SMPR macros
This commit is contained in:
parent
e8182a39ab
commit
80824ea22c
|
@ -500,21 +500,6 @@ LGPL License Terms @ref lgpl_license
|
|||
#define ADC_SMPR1_SMP12_MSK (0x7 << ADC_SMP12_LSB)
|
||||
#define ADC_SMPR1_SMP11_MSK (0x7 << ADC_SMP11_LSB)
|
||||
#define ADC_SMPR1_SMP10_MSK (0x7 << ADC_SMP10_LSB)
|
||||
/****************************************************************************/
|
||||
/* ADC_SMPR1 ADC Sample Time Selection for Channels */
|
||||
/** @defgroup adc_sample_r1 ADC Sample Time Selection for ADC1
|
||||
@ingroup adc_defines
|
||||
|
||||
@{*/
|
||||
#define ADC_SMPR1_SMP_1DOT5CYC 0x0
|
||||
#define ADC_SMPR1_SMP_7DOT5CYC 0x1
|
||||
#define ADC_SMPR1_SMP_13DOT5CYC 0x2
|
||||
#define ADC_SMPR1_SMP_28DOT5CYC 0x3
|
||||
#define ADC_SMPR1_SMP_41DOT5CYC 0x4
|
||||
#define ADC_SMPR1_SMP_55DOT5CYC 0x5
|
||||
#define ADC_SMPR1_SMP_71DOT5CYC 0x6
|
||||
#define ADC_SMPR1_SMP_239DOT5CYC 0x7
|
||||
/**@}*/
|
||||
|
||||
/* --- ADC_SMPR2 values ---------------------------------------------------- */
|
||||
|
||||
|
@ -538,23 +523,8 @@ LGPL License Terms @ref lgpl_license
|
|||
#define ADC_SMPR2_SMP2_MSK (0x7 << ADC_SMP2_LSB)
|
||||
#define ADC_SMPR2_SMP1_MSK (0x7 << ADC_SMP1_LSB)
|
||||
#define ADC_SMPR2_SMP0_MSK (0x7 << ADC_SMP0_LSB)
|
||||
/****************************************************************************/
|
||||
/* ADC_SMPR2 ADC Sample Time Selection for Channels */
|
||||
/** @defgroup adc_sample_r2 ADC Sample Time Selection for ADC2
|
||||
@ingroup adc_defines
|
||||
|
||||
@{*/
|
||||
#define ADC_SMPR2_SMP_1DOT5CYC 0x0
|
||||
#define ADC_SMPR2_SMP_7DOT5CYC 0x1
|
||||
#define ADC_SMPR2_SMP_13DOT5CYC 0x2
|
||||
#define ADC_SMPR2_SMP_28DOT5CYC 0x3
|
||||
#define ADC_SMPR2_SMP_41DOT5CYC 0x4
|
||||
#define ADC_SMPR2_SMP_55DOT5CYC 0x5
|
||||
#define ADC_SMPR2_SMP_71DOT5CYC 0x6
|
||||
#define ADC_SMPR2_SMP_239DOT5CYC 0x7
|
||||
/**@}*/
|
||||
|
||||
/* --- ADC_SMPRx generic values -------------------------------------------- */
|
||||
/* --- ADC_SMPRx values --------------------------------------------------- */
|
||||
/****************************************************************************/
|
||||
/* ADC_SMPRG ADC Sample Time Selection for Channels */
|
||||
/** @defgroup adc_sample_rg ADC Sample Time Selection for All Channels
|
||||
|
|
Loading…
Reference in New Issue