aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-11-04 10:51:23 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-11-04 10:51:23 +0000
commit476270c2ab91169a8e731562b0e68b86602e0d77 (patch)
tree08407b10b44bea3e84b37b6796da967229c02571 /os/hal/src
parent5626d9925ff6fafabac43ae65c38a290fd2c0db6 (diff)
downloadChibiOS-476270c2ab91169a8e731562b0e68b86602e0d77.tar.gz
ChibiOS-476270c2ab91169a8e731562b0e68b86602e0d77.tar.bz2
ChibiOS-476270c2ab91169a8e731562b0e68b86602e0d77.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7475 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/src')
-rw-r--r--os/hal/src/hal.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/os/hal/src/hal.c b/os/hal/src/hal.c
index d9985993e..b49f7383e 100644
--- a/os/hal/src/hal.c
+++ b/os/hal/src/hal.c
@@ -122,8 +122,11 @@ void halInit(void) {
/* Board specific initialization.*/
boardInit();
-#if (OSAL_ST_MODE != OSAL_ST_MODE_NONE) || defined(__DOXYGEN__)
- /* System tick service if the underlying OS requires it.*/
+/*
+ * The ST driver is a special case, it is only initialized if the OSAL is
+ * configured to require it.
+ */
+#if OSAL_ST_MODE != OSAL_ST_MODE_NONE
stInit();
#endif
}