diff --git a/cores/nRF5/sysview/SEGGER_SYSVIEW_FreeRTOS.c b/cores/nRF5/sysview/SEGGER_SYSVIEW_FreeRTOS.c index 1da67747..bfb8564a 100644 --- a/cores/nRF5/sysview/SEGGER_SYSVIEW_FreeRTOS.c +++ b/cores/nRF5/sysview/SEGGER_SYSVIEW_FreeRTOS.c @@ -10,6 +10,9 @@ File : SEGGER_SYSVIEW_FreeRTOS.c Purpose : Interface between FreeRTOS and SystemView. Revision: $Rev: 7947 $ */ + +#if CFG_DEBUG >= 3 + #include "FreeRTOS.h" #include "task.h" #include "SEGGER_SYSVIEW.h" @@ -208,4 +211,6 @@ const SEGGER_SYSVIEW_OS_API SYSVIEW_X_OS_TraceAPI = { _cbSendTaskList, }; +#endif // CFG_DEBUG + /*************************** End of file ****************************/ diff --git a/cores/nRF5/verify.h b/cores/nRF5/verify.h index 24ad994d..8314276b 100644 --- a/cores/nRF5/verify.h +++ b/cores/nRF5/verify.h @@ -56,6 +56,8 @@ extern "C" // VERIFY Helper //--------------------------------------------------------------------+ #if CFG_DEBUG >= 1 +#include + #define VERIFY_MESS(_status, _funcstr) \ do { \ const char* (*_fstr)(int32_t) = _funcstr;\