From 125a85a1528192fc43f532b570268640eaa550bf Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 9 Mar 2013 11:12:10 +0000 Subject: Fixed bug 3606274. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5388 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32F1xx/hal_lld.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'os/hal/platforms/STM32F1xx') diff --git a/os/hal/platforms/STM32F1xx/hal_lld.c b/os/hal/platforms/STM32F1xx/hal_lld.c index d29e31e1d..14ad1e400 100644 --- a/os/hal/platforms/STM32F1xx/hal_lld.c +++ b/os/hal/platforms/STM32F1xx/hal_lld.c @@ -162,6 +162,10 @@ void stm32_clock_init(void) { ; /* Waits until HSI is selected. */ #if STM32_HSE_ENABLED +#if defined(STM32_HSE_BYPASS) + /* HSE Bypass.*/ + RCC->CR |= RCC_CR_HSEBYP; +#endif /* HSE activation.*/ RCC->CR |= RCC_CR_HSEON; while (!(RCC->CR & RCC_CR_HSERDY)) -- cgit v1.2.3