aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32F1xx
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-01-12 18:26:26 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-01-12 18:26:26 +0000
commit4e3e0d62789355cfc630012dfcab96c78d3fec2e (patch)
treebf33d8003481fc4a904cb2c65d9765484977f035 /os/hal/platforms/STM32F1xx
parent50e45678856f935009648cbfee790a348b55de3d (diff)
downloadChibiOS-4e3e0d62789355cfc630012dfcab96c78d3fec2e.tar.gz
ChibiOS-4e3e0d62789355cfc630012dfcab96c78d3fec2e.tar.bz2
ChibiOS-4e3e0d62789355cfc630012dfcab96c78d3fec2e.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3797 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F1xx')
-rw-r--r--os/hal/platforms/STM32F1xx/hal_lld.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/os/hal/platforms/STM32F1xx/hal_lld.c b/os/hal/platforms/STM32F1xx/hal_lld.c
index 0112d7eaa..f903106cb 100644
--- a/os/hal/platforms/STM32F1xx/hal_lld.c
+++ b/os/hal/platforms/STM32F1xx/hal_lld.c
@@ -46,8 +46,8 @@
*/
static void hal_lld_backup_domain_init(void) {
- /* Backup domain access enabled during initialization.*/
- PWR->CR |= PWR_CR_DBP;
+ /* Backup domain access enabled and left open.*/
+ PWR->CR = PWR_CR_DBP;
/* If enabled then the LSE is started.*/
#if STM32_LSE_ENABLED
@@ -72,9 +72,6 @@ static void hal_lld_backup_domain_init(void) {
RCC->BDCR |= RCC_BDCR_RTCEN;
}
#endif /* STM32_RTCSEL != STM32_RTCSEL_NOCLOCK */
-
- /* Backup domain access disabled for operations safety.*/
- PWR->CR &= ~PWR_CR_DBP;
}
/*===========================================================================*/