aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32F2xx/hal_lld.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-01-10 18:14:24 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-01-10 18:14:24 +0000
commit8824a54e5efd1cc239bd7af2f8cbe12481d7a247 (patch)
tree3c052d2d1906dab386e56aa438bc6308bb21ef37 /os/hal/platforms/STM32F2xx/hal_lld.h
parenta40e2315db35340bdc80f9b922acbdfeb97be83f (diff)
downloadChibiOS-8824a54e5efd1cc239bd7af2f8cbe12481d7a247.tar.gz
ChibiOS-8824a54e5efd1cc239bd7af2f8cbe12481d7a247.tar.bz2
ChibiOS-8824a54e5efd1cc239bd7af2f8cbe12481d7a247.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3783 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F2xx/hal_lld.h')
-rw-r--r--os/hal/platforms/STM32F2xx/hal_lld.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/os/hal/platforms/STM32F2xx/hal_lld.h b/os/hal/platforms/STM32F2xx/hal_lld.h
index 84861fa33..b9186bb8b 100644
--- a/os/hal/platforms/STM32F2xx/hal_lld.h
+++ b/os/hal/platforms/STM32F2xx/hal_lld.h
@@ -1230,21 +1230,21 @@
#endif
/**
- * @brief HSE divider toward RTC clock.
+ * @brief RTC HSE divider setting.
*/
-#if ((STM32_RTCPRE_VALUE >= 2) && (STM32_RTCPRE_VALUE <= 31)) || \
+#if ((STM32_RTCPRE_VALUE >= 2) && (STM32_RTCPRE_VALUE <= 31)) || \
defined(__DOXYGEN__)
-#define STM32_HSEDIVCLK (STM32_HSECLK / STM32_RTCPRE_VALUE)
+#define STM32_RTCPRE (STM32_RTCPRE_VALUE << 16)
#else
#error "invalid STM32_RTCPRE value specified"
#endif
/**
- * @brief RTC HSE divider setting.
+ * @brief HSE divider toward RTC clock.
*/
-#if ((STM32_RTCPRE_VALUE >= 2) && (STM32_RTCPRE_VALUE <= 31)) || \
+#if ((STM32_RTCPRE_VALUE >= 2) && (STM32_RTCPRE_VALUE <= 31)) || \
defined(__DOXYGEN__)
-#define STM32_RTCPRE (STM32_RTCPRE_VALUE << 16)
+#define STM32_HSEDIVCLK (STM32_HSECLK / STM32_RTCPRE_VALUE)
#else
#error "invalid STM32_RTCPRE value specified"
#endif