From 476270c2ab91169a8e731562b0e68b86602e0d77 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 4 Nov 2014 10:51:23 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7475 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/src/hal.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'os/hal/src') 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 } -- cgit v1.2.3