summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Palsson <karlp@tweak.net.au>2016-03-04 00:40:28 +0000
committerKarl Palsson <karlp@tweak.net.au>2016-03-04 00:43:41 +0000
commit5e57c5b0c96ea91835d8ec18a52146cd84d6ddf1 (patch)
tree1d27b253d0658754dfd5a908c4240d0e3ca750c6
parenta5106fc15baf14b0427c6c5372bad5b8a69a389d (diff)
downloadolsndot-5e57c5b0c96ea91835d8ec18a52146cd84d6ddf1.tar.gz
olsndot-5e57c5b0c96ea91835d8ec18a52146cd84d6ddf1.tar.bz2
olsndot-5e57c5b0c96ea91835d8ec18a52146cd84d6ddf1.zip
use new names for SMPRx defines
-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