Skip to content

Commit 1cb51ff

Browse files
committed
Remove contents when SysView is not enabled.
1 parent 5ed66d2 commit 1cb51ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cores/nRF5/sysview/SEGGER_SYSVIEW_FreeRTOS.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ Purpose : Interface between FreeRTOS and SystemView.
5252
Revision: $Rev: 7947 $
5353
*/
5454

55+
#if CFG_DEBUG >= 3
56+
5557
#include "FreeRTOS.h"
5658
#include "task.h"
5759
#include "SEGGER_SYSVIEW.h"
@@ -250,4 +252,6 @@ const SEGGER_SYSVIEW_OS_API SYSVIEW_X_OS_TraceAPI = {
250252
_cbSendTaskList,
251253
};
252254

255+
#endif // CFG_DEBUG >= 3
256+
253257
/*************************** End of file ****************************/

0 commit comments

Comments
 (0)