aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32F4xx
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-08-21 16:09:14 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-08-21 16:09:14 +0000
commit35cae2a2900298061c197a19e0b6eace8eaa9312 (patch)
tree839366768dd7adc1a6687818cd59a76c55956359 /os/hal/platforms/STM32F4xx
parent79ec800cb608672f38f013ed8302aa6ad72016d0 (diff)
downloadChibiOS-35cae2a2900298061c197a19e0b6eace8eaa9312.tar.gz
ChibiOS-35cae2a2900298061c197a19e0b6eace8eaa9312.tar.bz2
ChibiOS-35cae2a2900298061c197a19e0b6eace8eaa9312.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4607 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F4xx')
-rw-r--r--os/hal/platforms/STM32F4xx/adc_lld.h6
-rw-r--r--os/hal/platforms/STM32F4xx/hal_lld.h7
2 files changed, 10 insertions, 3 deletions
diff --git a/os/hal/platforms/STM32F4xx/adc_lld.h b/os/hal/platforms/STM32F4xx/adc_lld.h
index 88fad4329..cd417c324 100644
--- a/os/hal/platforms/STM32F4xx/adc_lld.h
+++ b/os/hal/platforms/STM32F4xx/adc_lld.h
@@ -134,7 +134,7 @@
* @note The default is @p TRUE.
*/
#if !defined(STM32_ADC_USE_ADC1) || defined(__DOXYGEN__)
-#define STM32_ADC_USE_ADC1 TRUE
+#define STM32_ADC_USE_ADC1 FALSE
#endif
/**
@@ -143,7 +143,7 @@
* @note The default is @p TRUE.
*/
#if !defined(STM32_ADC_USE_ADC2) || defined(__DOXYGEN__)
-#define STM32_ADC_USE_ADC2 TRUE
+#define STM32_ADC_USE_ADC2 FALSE
#endif
/**
@@ -152,7 +152,7 @@
* @note The default is @p TRUE.
*/
#if !defined(STM32_ADC_USE_ADC3) || defined(__DOXYGEN__)
-#define STM32_ADC_USE_ADC3 TRUE
+#define STM32_ADC_USE_ADC3 FALSE
#endif
/**
diff --git a/os/hal/platforms/STM32F4xx/hal_lld.h b/os/hal/platforms/STM32F4xx/hal_lld.h
index 986156e00..ce01b9ce0 100644
--- a/os/hal/platforms/STM32F4xx/hal_lld.h
+++ b/os/hal/platforms/STM32F4xx/hal_lld.h
@@ -768,6 +768,13 @@
/* Derived constants and error checks. */
/*===========================================================================*/
+/*
+ * Configuration-related checks.
+ */
+#if !defined(STM32F4xx_MCUCONF)
+#error "Using a wrong mcuconf.h file, STM32F4xx_MCUCONF not defined"
+#endif
+
/**
* @brief Maximum SYSCLK.
* @note It is a function of the core voltage setting.