From e0dbac1295c77bfec49037bdb0678c216978f655 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 12 May 2014 09:06:49 +0000 Subject: Fixed bug #495. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6928 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/LLD/I2Cv1/i2c_lld.h | 2 +- os/hal/ports/STM32/STM32L1xx/hal_lld.c | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'os/hal') 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 /** @} */ -- cgit v1.2.3