Add some specifc define for olimex stm32 board.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 28 Jun 2010 18:01:09 +0000 (18:01 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 28 Jun 2010 18:01:09 +0000 (18:01 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3960 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/cortex-m3/io/stm32_adc.h

index c34f3127ff1152fe3cbd8faf124952c2a7039eef..24bd2479e5f5fa0f76374810eb634835e127ec7a 100644 (file)
 #define CR1_ADC_CLEAR_MASK             ((uint32_t)0xFFF0FEFF)\r
 #define CR2_ADC_CLEAR_MASK             ((uint32_t)0xFFF1F7FD)\r
 #define SQR1_CLEAR_MASK            ((uint32_t)0xFF0FFFFF)
+
+
+
+/* ADC defines for SMT32F103Bxx */
+#define ADC_TEMP_V25         4.3
+#define ADC_TEMP_SLOPE      1.43
+#define ADC_TEMP_CONST        25
+#define ADC_TEMP_CH           16
+#define ADC_VREFINT_CH        17
 \r
 struct stm32_adc
 {