diff options
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
|