aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32F4xx/adc_lld.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-10-22 08:52:18 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-10-22 08:52:18 +0000
commit93be331bcec89f81d0335fb7c5e239f0f02d6e0b (patch)
tree73491cb3fe7ef9fdb95d3a6acceba96c0bbd352b /os/hal/platforms/STM32F4xx/adc_lld.h
parent38339542cc09f2fb53d4b08ae3fe12bb488d1ffc (diff)
downloadChibiOS-93be331bcec89f81d0335fb7c5e239f0f02d6e0b.tar.gz
ChibiOS-93be331bcec89f81d0335fb7c5e239f0f02d6e0b.tar.bz2
ChibiOS-93be331bcec89f81d0335fb7c5e239f0f02d6e0b.zip
STM32F2xx deleted and merged with STM32F4xx code.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4775 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F4xx/adc_lld.h')
-rw-r--r--os/hal/platforms/STM32F4xx/adc_lld.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/os/hal/platforms/STM32F4xx/adc_lld.h b/os/hal/platforms/STM32F4xx/adc_lld.h
index cd417c324..f54b20ecb 100644
--- a/os/hal/platforms/STM32F4xx/adc_lld.h
+++ b/os/hal/platforms/STM32F4xx/adc_lld.h
@@ -20,7 +20,7 @@
/**
* @file STM32F4xx/adc_lld.h
- * @brief STM32F4xx ADC subsystem low level driver header.
+ * @brief STM32F4xx/STM32F2xx ADC subsystem low level driver header.
*
* @addtogroup ADC
* @{
@@ -47,7 +47,11 @@
/**
* @brief Maximum ADC clock frequency.
*/
+#if defined(STM32F4XX) || defined(__DOXYGEN__)
#define STM32_ADCCLK_MAX 36000000
+#else
+#define STM32_ADCCLK_MAX 30000000
+#endif
/** @} */
/**
@@ -120,8 +124,8 @@
/**
* @brief ADC common clock divider.
* @note This setting is influenced by the VDDA voltage and other
- * external conditions, please refer to the STM32F4xx datasheet
- * for more info.<br>
+ * external conditions, please refer to the datasheet for more
+ * info.<br>
* See section 5.3.20 "12-bit ADC characteristics".
*/
#if !defined(STM32_ADC_ADCPRE) || defined(__DOXYGEN__)