From 82583b07489027564b9520257c0327af4defed9b Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 14 Aug 2013 15:34:40 +0000 Subject: Added a check. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6148 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/ARMCM4-STM32F303-DISCOVERY/chconf.h | 2 +- os/rt/include/chvt.h | 6 +++++- 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 /*===========================================================================*/ -- cgit v1.2.3