summaryrefslogtreecommitdiff
path: root/tests/adc-power
diff options
context:
space:
mode:
Diffstat (limited to 'tests/adc-power')
-rw-r--r--tests/adc-power/adc-power.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/adc-power/adc-power.c b/tests/adc-power/adc-power.c
index c673666..bb70aa7 100644
--- a/tests/adc-power/adc-power.c
+++ b/tests/adc-power/adc-power.c
@@ -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