diff --git a/core/include/debug.h b/core/include/debug.h index 25b1e44be9..fab626f4ea 100644 --- a/core/include/debug.h +++ b/core/include/debug.h @@ -119,6 +119,17 @@ extern "C" { #endif /** @} */ +/** + * @def DEBUG_EXTRA_STACKSIZE + * + * @brief Extra stacksize needed when ENABLE_DEBUG==1 + */ +#if ENABLE_DEBUG +#define DEBUG_EXTRA_STACKSIZE THREAD_EXTRA_STACKSIZE_PRINTF +#else +#define DEBUG_EXTRA_STACKSIZE (0) +#endif + #ifdef __cplusplus } #endif