aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32F1xx
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-05-03 17:38:29 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-05-03 17:38:29 +0000
commitad8290460d4f252fde3fcf435e525268ea0854df (patch)
treef196d4bde82f36327db27420966e0d98e462fa5d /os/hal/platforms/STM32F1xx
parent8ed6a8d9e3b4613a0d586d409f4c5706f21b5857 (diff)
downloadChibiOS-ad8290460d4f252fde3fcf435e525268ea0854df.tar.gz
ChibiOS-ad8290460d4f252fde3fcf435e525268ea0854df.tar.bz2
ChibiOS-ad8290460d4f252fde3fcf435e525268ea0854df.zip
Added an HSE bypass option to the STM32 clock initialization.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4157 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F1xx')
-rw-r--r--os/hal/platforms/STM32F1xx/hal_lld.c4
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 53bafb1b5..9fda0b3e7 100644
--- a/os/hal/platforms/STM32F1xx/hal_lld.c
+++ b/os/hal/platforms/STM32F1xx/hal_lld.c
@@ -215,6 +215,10 @@ void stm32_clock_init(void) {
; /* Wait until HSI is the source.*/
#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))