diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-03-04 14:27:03 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-03-04 14:27:03 +0000 |
commit | fc972f48d6c432993bcad77033ce4824cb44c5d0 (patch) | |
tree | 14a31320ad395ba279606a9cc6585cbdebb5bdd2 /os/hal/platforms/STM32F4xx/hal_lld.h | |
parent | 7efa59601a9dcbac4f28daac847c6d246ac016a6 (diff) | |
download | ChibiOS-fc972f48d6c432993bcad77033ce4824cb44c5d0.tar.gz ChibiOS-fc972f48d6c432993bcad77033ce4824cb44c5d0.tar.bz2 ChibiOS-fc972f48d6c432993bcad77033ce4824cb44c5d0.zip |
RTC. V2 driver merged to trunk.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4017 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F4xx/hal_lld.h')
-rw-r--r-- | os/hal/platforms/STM32F4xx/hal_lld.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32F4xx/hal_lld.h b/os/hal/platforms/STM32F4xx/hal_lld.h index c88ac3a96..a29c33cde 100644 --- a/os/hal/platforms/STM32F4xx/hal_lld.h +++ b/os/hal/platforms/STM32F4xx/hal_lld.h @@ -1103,6 +1103,9 @@ #if STM32_PCLK1 > STM32_PCLK1_MAX
#error "STM32_PCLK1 exceeding maximum frequency (STM32_PCLK1_MAX)"
#endif
+#if STM32_PCLK1 < (STM32_RTCCLK * 7)
+#error "STM32_PCLK1 frequency is too low to handle RTC without ugly workaround"
+#endif
/**
* @brief APB2 frequency.
|