From 0faef9a2928309385c52f25fb892ac46ced093ab Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 3 Dec 2011 08:49:51 +0000 Subject: Fixed bug 3449139, increased version numbers. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3552 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32L1xx/hal_lld.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'os/hal/platforms/STM32L1xx') diff --git a/os/hal/platforms/STM32L1xx/hal_lld.c b/os/hal/platforms/STM32L1xx/hal_lld.c index c59aa3f1c..96b18a656 100644 --- a/os/hal/platforms/STM32L1xx/hal_lld.c +++ b/os/hal/platforms/STM32L1xx/hal_lld.c @@ -60,8 +60,8 @@ void hal_lld_init(void) { /* Reset of all peripherals.*/ rccResetAHB(!RCC_AHBRSTR_FLITFRST); - rccResetAPB1(!0); - rccResetAPB2(!RCC_APB2RSTR_SYSCFGRST); + rccResetAPB1(!RCC_APB1RSTR_PWRRST); + rccResetAPB2(!0); /* SysTick initialization using the system clock.*/ SysTick->LOAD = STM32_HCLK / CH_FREQUENCY - 1; @@ -170,6 +170,10 @@ void stm32_clock_init(void) { ; #endif #endif /* STM32_NO_INIT */ + + /* SYSCFG clock enabled here because it is a multi-functional unit shared + among multiple drivers.*/ + rccEnableAPB2(RCC_APB2ENR_SYSCFGEN, TRUE); } #else void stm32_clock_init(void) {} -- cgit v1.2.3