aboutsummaryrefslogtreecommitdiff
path: root/include/libopenstm32
diff options
context:
space:
mode:
authorThomas Otto2010-03-24 20:44:32 +0100
committerThomas Otto2010-03-24 20:44:32 +0100
commita0e026d110599697f976b07e36425edb6c2b2eee (patch)
tree751a06380abe1858839f064f6797f614cd007ff6 /include/libopenstm32
parent3882f8f96ffbdf9b86e26281280df9feecdab437 (diff)
Added generic values for ADC_SMPR_SMP to adc.h.
Diffstat (limited to 'include/libopenstm32')
-rw-r--r--include/libopenstm32/adc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/libopenstm32/adc.h b/include/libopenstm32/adc.h
index 4f15b26..7553f07 100644
--- a/include/libopenstm32/adc.h
+++ b/include/libopenstm32/adc.h
@@ -262,6 +262,17 @@
#define ADC_SMPR2_SMP_71DOT5CYC 0x6
#define ADC_SMPR2_SMP_239DOT5CYC 0x7
+/* --- ADC_SMPRx generic values -------------------------------------------- */
+
+#define ADC_SMPR_SMP_1DOT5CYC 0x0
+#define ADC_SMPR_SMP_7DOT5CYC 0x1
+#define ADC_SMPR_SMP_13DOT5CYC 0x2
+#define ADC_SMPR_SMP_28DOT5CYC 0x3
+#define ADC_SMPR_SMP_41DOT5CYC 0x4
+#define ADC_SMPR_SMP_55DOT5CYC 0x5
+#define ADC_SMPR_SMP_71DOT5CYC 0x6
+#define ADC_SMPR_SMP_239DOT5CYC 0x7
+
/* --- ADC_JOFRx, ADC_HTR, ADC_LTR values ---------------------------------- */
#define ADC_JOFFSET_LSB 0