aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-01-11 21:26:10 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-01-11 21:26:10 +0000
commit7fc77129b1827495859e65b8c296add9bc372656 (patch)
treeb9bb1c45130943e44ec277ede76c9afd8a2cae0b /os/hal/platforms
parent8f9118ce03c0794a12765081c3668d4d1fa12ae6 (diff)
downloadChibiOS-7fc77129b1827495859e65b8c296add9bc372656.tar.gz
ChibiOS-7fc77129b1827495859e65b8c296add9bc372656.tar.bz2
ChibiOS-7fc77129b1827495859e65b8c296add9bc372656.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3793 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms')
-rw-r--r--os/hal/platforms/STM32F1xx/hal_lld.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32F1xx/hal_lld.c b/os/hal/platforms/STM32F1xx/hal_lld.c
index 936aec4d2..0112d7eaa 100644
--- a/os/hal/platforms/STM32F1xx/hal_lld.c
+++ b/os/hal/platforms/STM32F1xx/hal_lld.c
@@ -72,6 +72,9 @@ 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;
}
/*===========================================================================*/