From 5e57c5b0c96ea91835d8ec18a52146cd84d6ddf1 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Fri, 4 Mar 2016 00:40:28 +0000 Subject: use new names for SMPRx defines --- tests/adc-power/adc-power.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tests') 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 -- cgit