aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32F37x/hal_lld.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-11-11 10:47:38 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-11-11 10:47:38 +0000
commit3c0d50260180d4d8ec6ee6aa5a46e7e178e4af4b (patch)
treec93c080216c0cc41a575303f41ab81c815232809 /os/hal/platforms/STM32F37x/hal_lld.c
parent3693a12c72af7bcca240a80746eb74815752fcdc (diff)
downloadChibiOS-3c0d50260180d4d8ec6ee6aa5a46e7e178e4af4b.tar.gz
ChibiOS-3c0d50260180d4d8ec6ee6aa5a46e7e178e4af4b.tar.bz2
ChibiOS-3c0d50260180d4d8ec6ee6aa5a46e7e178e4af4b.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6436 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F37x/hal_lld.c')
-rw-r--r--os/hal/platforms/STM32F37x/hal_lld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/platforms/STM32F37x/hal_lld.c b/os/hal/platforms/STM32F37x/hal_lld.c
index a47ab59fc..ba6100056 100644
--- a/os/hal/platforms/STM32F37x/hal_lld.c
+++ b/os/hal/platforms/STM32F37x/hal_lld.c
@@ -62,10 +62,10 @@ static void hal_lld_backup_domain_init(void) {
#if STM32_LSE_ENABLED
#if defined(STM32_LSE_BYPASS)
/* LSE Bypass.*/
- RCC->BDCR = STM32_LSEDRV | RCC_BDCR_LSEON | RCC_BDCR_LSEBYP;
+ RCC->BDCR |= STM32_LSEDRV | RCC_BDCR_LSEON | RCC_BDCR_LSEBYP;
#else
/* No LSE Bypass.*/
- RCC->BDCR = STM32_LSEDRV | RCC_BDCR_LSEON;
+ RCC->BDCR |= STM32_LSEDRV | RCC_BDCR_LSEON;
#endif
while ((RCC->BDCR & RCC_BDCR_LSERDY) == 0)
; /* Waits until LSE is stable. */