use new names for SMPRx defines
This commit is contained in:
parent
a5106fc15b
commit
5e57c5b0c9
1 changed files with 6 additions and 2 deletions
|
|
@ -24,8 +24,8 @@
|
|||
#define SEPARATE_ADC_SAMPLING 0
|
||||
#define SAMPLE_TIME_BASIC ADC_SMPR_SMP_239DOT5 // 4usec or more for tempsensor
|
||||
#elif defined(STM32F3)
|
||||
#define SAMPLE_TIME_BASIC ADC_SMPR1_SMP_181DOT5CYC
|
||||
#define SAMPLE_TIME_TEMP ADC_SMPR1_SMP_601DOT5CYC // 2.2usecs or more
|
||||
#define SAMPLE_TIME_BASIC ADC_SMPR_SMP_181DOT5CYC
|
||||
#define SAMPLE_TIME_TEMP ADC_SMPR_SMP_601DOT5CYC // 2.2usecs or more
|
||||
#define SAMPLE_TIME_VREF SAMPLE_TIME_TEMP
|
||||
#elif defined(STM32F4)
|
||||
#define SAMPLE_TIME_BASIC ADC_SMPR_SMP_28CYC
|
||||
|
|
@ -38,6 +38,10 @@
|
|||
#define SAMPLE_TIME_TEMP ADC_SMPR_SMP_192CYC
|
||||
#define SAMPLE_TIME_VREF SAMPLE_TIME_TEMP
|
||||
#define SEPARATE_VREF 0
|
||||
#elif defined(STM32L4)
|
||||
#define SAMPLE_TIME_BASIC ADC_SMPR_SMP_47DOT5CYC
|
||||
#define SAMPLE_TIME_TEMP ADC_SMPR_SMP_247DOT5CYC
|
||||
#define SAMPLE_TIME_VREF SAMPLE_TIME_TEMP
|
||||
#else
|
||||
#error "no sample time for your target yet?!"
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue