diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-11-11 12:14:43 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-11-11 12:14:43 +0000 |
commit | 744250d0e2b9264d3b1bb6765e269d2e8c0be272 (patch) | |
tree | c49875810d2f2280faa257171c1ef140f0d8b87b /os/hal/ports/STM32F0xx | |
parent | 24d3ce6003a96773e5ee1c99af804fcccc4656f8 (diff) | |
download | ChibiOS-744250d0e2b9264d3b1bb6765e269d2e8c0be272.tar.gz ChibiOS-744250d0e2b9264d3b1bb6765e269d2e8c0be272.tar.bz2 ChibiOS-744250d0e2b9264d3b1bb6765e269d2e8c0be272.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6440 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32F0xx')
-rw-r--r-- | os/hal/ports/STM32F0xx/hal_lld.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/ports/STM32F0xx/hal_lld.c b/os/hal/ports/STM32F0xx/hal_lld.c index 09ab62923..9b6a85b91 100644 --- a/os/hal/ports/STM32F0xx/hal_lld.c +++ b/os/hal/ports/STM32F0xx/hal_lld.c @@ -61,10 +61,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. */
|