aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-08-22 06:17:06 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-08-22 06:17:06 +0000
commitf83c58d4a4219888df1d3c95e3849ce1f4072d54 (patch)
tree01ca4743cd680232e465341122c5dea7cb59a950 /os/hal/platforms
parent35cae2a2900298061c197a19e0b6eace8eaa9312 (diff)
downloadChibiOS-f83c58d4a4219888df1d3c95e3849ce1f4072d54.tar.gz
ChibiOS-f83c58d4a4219888df1d3c95e3849ce1f4072d54.tar.bz2
ChibiOS-f83c58d4a4219888df1d3c95e3849ce1f4072d54.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4608 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms')
-rw-r--r--os/hal/platforms/STM32/pwm_lld.h2
-rw-r--r--os/hal/platforms/STM32L1xx/hal_lld.h7
2 files changed, 8 insertions, 1 deletions
diff --git a/os/hal/platforms/STM32/pwm_lld.h b/os/hal/platforms/STM32/pwm_lld.h
index 680472c29..1d7f62d41 100644
--- a/os/hal/platforms/STM32/pwm_lld.h
+++ b/os/hal/platforms/STM32/pwm_lld.h
@@ -85,7 +85,7 @@
* @note The default is @p TRUE.
*/
#if !defined(STM32_PWM_USE_ADVANCED) || defined(__DOXYGEN__)
-#define STM32_PWM_USE_ADVANCED TRUE
+#define STM32_PWM_USE_ADVANCED FALSE
#endif
/**
diff --git a/os/hal/platforms/STM32L1xx/hal_lld.h b/os/hal/platforms/STM32L1xx/hal_lld.h
index bde834821..575734dc7 100644
--- a/os/hal/platforms/STM32L1xx/hal_lld.h
+++ b/os/hal/platforms/STM32L1xx/hal_lld.h
@@ -565,6 +565,13 @@
/* Derived constants and error checks. */
/*===========================================================================*/
+/*
+ * Configuration-related checks.
+ */
+#if !defined(STM32L1xx_MCUCONF)
+#error "Using a wrong mcuconf.h file, STM32L1xx_MCUCONF not defined"
+#endif
+
/* Voltage related limits.*/
#if (STM32_VOS == STM32_VOS_1P8) || defined(__DOXYGEN__)
/**