diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-03-09 11:12:10 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-03-09 11:12:10 +0000 |
commit | 125a85a1528192fc43f532b570268640eaa550bf (patch) | |
tree | e3315c11705cbd0ce173f63586b49f3ab8558a89 /os | |
parent | 9992b23f94532a5d04da91ee8c0844cfcb8dd2e7 (diff) | |
download | ChibiOS-125a85a1528192fc43f532b570268640eaa550bf.tar.gz ChibiOS-125a85a1528192fc43f532b570268640eaa550bf.tar.bz2 ChibiOS-125a85a1528192fc43f532b570268640eaa550bf.zip |
Fixed bug 3606274.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5388 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/platforms/STM32F1xx/hal_lld.c | 4 |
1 files changed, 4 insertions, 0 deletions
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))
|