diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-12-08 20:43:44 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-12-08 20:43:44 +0000 |
commit | dcf8830c452d9d19a10931fd0c400b46413b97b0 (patch) | |
tree | 61ed1d4ba4f08d9c1e46912917f34355305960f9 /os | |
parent | 19e8e1950d05f7192240ab02b5541a9c31b18aa2 (diff) | |
download | ChibiOS-dcf8830c452d9d19a10931fd0c400b46413b97b0.tar.gz ChibiOS-dcf8830c452d9d19a10931fd0c400b46413b97b0.tar.bz2 ChibiOS-dcf8830c452d9d19a10931fd0c400b46413b97b0.zip |
RTCv1. Fixed compilation issue with HAL_USE_RTC disabled (bug 3594083)
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4894 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/platforms/STM32F1xx/hal_lld.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32F1xx/hal_lld.c b/os/hal/platforms/STM32F1xx/hal_lld.c index bcb7d3f47..3d3c6caaa 100644 --- a/os/hal/platforms/STM32F1xx/hal_lld.c +++ b/os/hal/platforms/STM32F1xx/hal_lld.c @@ -76,7 +76,9 @@ static void hal_lld_backup_domain_init(void) { RCC->BDCR |= RCC_BDCR_RTCEN;
/* Prescaler value loaded in registers.*/
+#if HAL_USE_RTC
rtc_lld_set_prescaler();
+#endif /* HAL_USE_RTC */
}
#endif /* STM32_RTCSEL != STM32_RTCSEL_NOCLOCK */
}
|