aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32F4xx/hal_lld.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-01-11 18:02:20 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-01-11 18:02:20 +0000
commit58f1fe92ee9c68ffd08bccd19f67eafbbc968a71 (patch)
treefb593f55912ac98d9d82f9b5e70a3edc751b2fb6 /os/hal/platforms/STM32F4xx/hal_lld.c
parent1ed89364ca6b9b6c89d13f6d39f7b2d085c8f8e4 (diff)
downloadChibiOS-58f1fe92ee9c68ffd08bccd19f67eafbbc968a71.tar.gz
ChibiOS-58f1fe92ee9c68ffd08bccd19f67eafbbc968a71.tar.bz2
ChibiOS-58f1fe92ee9c68ffd08bccd19f67eafbbc968a71.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3788 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F4xx/hal_lld.c')
-rw-r--r--os/hal/platforms/STM32F4xx/hal_lld.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32F4xx/hal_lld.c b/os/hal/platforms/STM32F4xx/hal_lld.c
index d26059d70..00c560f08 100644
--- a/os/hal/platforms/STM32F4xx/hal_lld.c
+++ b/os/hal/platforms/STM32F4xx/hal_lld.c
@@ -54,6 +54,7 @@ static void hal_lld_backup_domain_init(void) {
if ((RCC->BDCR & RCC_BDCR_LSEON) == 0) {
/* Backup domain reset.*/
RCC->BDCR = RCC_BDCR_BDRST;
+ RCC->BDCR = 0;
RCC->BDCR = RCC_BDCR_LSEON;
while ((RCC->BDCR & RCC_BDCR_LSERDY) == 0)
; /* Waits until LSE is stable. */