From 29730413e44784b377b92bd0f3a3ae0ca60f0e70 Mon Sep 17 00:00:00 2001 From: asterix Date: Mon, 28 Jun 2010 18:01:09 +0000 Subject: [PATCH] Add some specifc define for olimex stm32 board. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3960 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/cortex-m3/io/stm32_adc.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bertos/cpu/cortex-m3/io/stm32_adc.h b/bertos/cpu/cortex-m3/io/stm32_adc.h index c34f3127..24bd2479 100644 --- a/bertos/cpu/cortex-m3/io/stm32_adc.h +++ b/bertos/cpu/cortex-m3/io/stm32_adc.h @@ -273,6 +273,15 @@ #define CR1_ADC_CLEAR_MASK ((uint32_t)0xFFF0FEFF) #define CR2_ADC_CLEAR_MASK ((uint32_t)0xFFF1F7FD) #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 struct stm32_adc { -- 2.25.1