diff --git a/firmware/config/stm32f4ems/chconf.h b/firmware/config/stm32f4ems/chconf.h index d608f3345a..830248fa0f 100644 --- a/firmware/config/stm32f4ems/chconf.h +++ b/firmware/config/stm32f4ems/chconf.h @@ -376,7 +376,9 @@ extern "C" * * @note The default is @p FALSE. */ +#ifndef CH_DBG_ENABLE_ASSERTS #define CH_DBG_ENABLE_ASSERTS TRUE +#endif /** * @brief Debug option, trace buffer. @@ -385,7 +387,9 @@ extern "C" * * @note The default is @p FALSE. */ +#ifndef CH_DBG_ENABLE_TRACE #define CH_DBG_ENABLE_TRACE TRUE +#endif /** * @brief Debug option, stack checks. @@ -397,7 +401,9 @@ extern "C" * @note The default failure mode is to halt the system with the global * @p panic_msg variable set to @p NULL. */ +#ifndef CH_DBG_ENABLE_STACK_CHECK #define CH_DBG_ENABLE_STACK_CHECK TRUE +#endif /** * @brief Debug option, stacks initialization. @@ -407,7 +413,9 @@ extern "C" * * @note The default is @p FALSE. */ +#ifndef CH_DBG_FILL_THREADS #define CH_DBG_FILL_THREADS TRUE +#endif /** * @brief Debug option, threads profiling.