diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-01-30 10:14:30 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-01-30 10:14:30 +0000 |
commit | 59b727e66f1a79f368b2ab9e3d18205188a97061 (patch) | |
tree | 49cfa3c1fcfd805f1c9b1d9b9afb8c9fe1acb15d /os | |
parent | a66602c99d316ecfb03e47dcf9b3fe4167edc580 (diff) | |
download | ChibiOS-59b727e66f1a79f368b2ab9e3d18205188a97061.tar.gz ChibiOS-59b727e66f1a79f368b2ab9e3d18205188a97061.tar.bz2 ChibiOS-59b727e66f1a79f368b2ab9e3d18205188a97061.zip |
Fixed bug 2942757.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1552 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r-- | os/kernel/include/threads.h | 3 | ||||
-rw-r--r-- | os/kernel/templates/chconf.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/os/kernel/include/threads.h b/os/kernel/include/threads.h index 6c674dea7..f94beac32 100644 --- a/os/kernel/include/threads.h +++ b/os/kernel/include/threads.h @@ -33,6 +33,9 @@ #if CH_USE_DYNAMIC && !CH_USE_WAITEXIT #error "CH_USE_DYNAMIC requires CH_USE_WAITEXIT" #endif +#if CH_USE_DYNAMIC && !CH_USE_HEAP && !CH_USE_MEMPOOLS +#error "CH_USE_DYNAMIC requires CH_USE_HEAP and/or CH_USE_MEMPOOLS" +#endif /** * @brief Structure representing a thread. diff --git a/os/kernel/templates/chconf.h b/os/kernel/templates/chconf.h index 5b42d3c9c..7fc7ea82b 100644 --- a/os/kernel/templates/chconf.h +++ b/os/kernel/templates/chconf.h @@ -329,6 +329,7 @@ *
* @note The default is @p TRUE.
* @note Requires @p CH_USE_WAITEXIT.
+ * @note Requires @p CH_USE_HEAP and/or @p CH_USE_MEMPOOLS.
*/
#if !defined(CH_USE_DYNAMIC) || defined(__DOXYGEN__)
#define CH_USE_DYNAMIC TRUE
|