aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-05-12 09:06:49 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-05-12 09:06:49 +0000
commite0dbac1295c77bfec49037bdb0678c216978f655 (patch)
treec993bc095cddbe59d8d83b82e447efb6822a6a21 /os/hal
parent184fa403fa9e1693aa03842313cafb3bc866315e (diff)
downloadChibiOS-e0dbac1295c77bfec49037bdb0678c216978f655.tar.gz
ChibiOS-e0dbac1295c77bfec49037bdb0678c216978f655.tar.bz2
ChibiOS-e0dbac1295c77bfec49037bdb0678c216978f655.zip
Fixed bug #495.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6928 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/ports/STM32/LLD/I2Cv1/i2c_lld.h2
-rw-r--r--os/hal/ports/STM32/STM32L1xx/hal_lld.c4
2 files changed, 1 insertions, 5 deletions
diff --git a/os/hal/ports/STM32/LLD/I2Cv1/i2c_lld.h b/os/hal/ports/STM32/LLD/I2Cv1/i2c_lld.h
index c36b4bcfe..b3dffef7e 100644
--- a/os/hal/ports/STM32/LLD/I2Cv1/i2c_lld.h
+++ b/os/hal/ports/STM32/LLD/I2Cv1/i2c_lld.h
@@ -326,7 +326,7 @@
#error "I2C peripheral clock frequency out of range."
#endif
-#elif defined(STM32L1XX_MD)
+#elif defined(STM32L1XX)
#if !(I2C_CLK_FREQ >= 2) && (I2C_CLK_FREQ <= 32)
#error "I2C peripheral clock frequency out of range."
#endif
diff --git a/os/hal/ports/STM32/STM32L1xx/hal_lld.c b/os/hal/ports/STM32/STM32L1xx/hal_lld.c
index ece540b89..848b89c7a 100644
--- a/os/hal/ports/STM32/STM32L1xx/hal_lld.c
+++ b/os/hal/ports/STM32/STM32L1xx/hal_lld.c
@@ -120,7 +120,6 @@ void hal_lld_init(void) {
*
* @special
*/
-#if defined(STM32L1XX_MD) || defined(__DOXYGEN__)
/**
* @brief Clocks and internal voltage initialization.
*/
@@ -216,8 +215,5 @@ void stm32_clock_init(void) {
among multiple drivers.*/
rccEnableAPB2(RCC_APB2ENR_SYSCFGEN, TRUE);
}
-#else
-void stm32_clock_init(void) {}
-#endif
/** @} */