aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-08-14 15:34:40 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-08-14 15:34:40 +0000
commit82583b07489027564b9520257c0327af4defed9b (patch)
tree6d106be67f05e6fcb28721d454185da97f747caf
parent38e0ede2ba22ce081f862d236829916949cc1447 (diff)
downloadChibiOS-82583b07489027564b9520257c0327af4defed9b.tar.gz
ChibiOS-82583b07489027564b9520257c0327af4defed9b.tar.bz2
ChibiOS-82583b07489027564b9520257c0327af4defed9b.zip
Added a check.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6148 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--demos/ARMCM4-STM32F303-DISCOVERY/chconf.h2
-rw-r--r--os/rt/include/chvt.h6
2 files changed, 6 insertions, 2 deletions
diff --git a/demos/ARMCM4-STM32F303-DISCOVERY/chconf.h b/demos/ARMCM4-STM32F303-DISCOVERY/chconf.h
index 6307b1055..6ee0bd743 100644
--- a/demos/ARMCM4-STM32F303-DISCOVERY/chconf.h
+++ b/demos/ARMCM4-STM32F303-DISCOVERY/chconf.h
@@ -441,7 +441,7 @@
* tickless mode.
*/
#if !defined(CH_DBG_THREADS_PROFILING) || defined(__DOXYGEN__)
-#define CH_DBG_THREADS_PROFILING TRUE
+#define CH_DBG_THREADS_PROFILING FALSE
#endif
/** @} */
diff --git a/os/rt/include/chvt.h b/os/rt/include/chvt.h
index ae1aee316..d4948f1d6 100644
--- a/os/rt/include/chvt.h
+++ b/os/rt/include/chvt.h
@@ -50,7 +50,11 @@
#endif
#if (CH_CFG_TIMEDELTA > 0) && (CH_CFG_TIME_QUANTUM > 0)
-#error "(CH_CFG_TIMEDELTA > 0) is not compatible with (CH_CFG_TIME_QUANTUM > 0)"
+#error "CH_CFG_TIME_QUANTUM not supported in tickless mode"
+#endif
+
+#if (CH_CFG_TIMEDELTA > 0) && CH_DBG_THREADS_PROFILING
+#error "CH_DBG_THREADS_PROFILING not supported in tickless mode"
#endif
/*===========================================================================*/