diff options
Diffstat (limited to 'os/kernel/include/threads.h')
-rw-r--r-- | os/kernel/include/threads.h | 3 |
1 files changed, 3 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. |