Skip to content

Commit 3edfb9c

Browse files
authored
Changed #if statement to #ifdef for SL_CATALOG_SYSTEMVIEW_TRACE_PRESENT (project-chip#32268)
1 parent 091ee22 commit 3edfb9c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

examples/platform/silabs/FreeRTOSConfig.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ extern uint32_t SystemCoreClock;
122122
#include "sl_component_catalog.h"
123123
#endif
124124

125-
#if SL_CATALOG_SYSTEMVIEW_TRACE_PRESENT
125+
#ifdef SL_CATALOG_SYSTEMVIEW_TRACE_PRESENT
126126
#include "SEGGER_SYSVIEW_FreeRTOS.h"
127127
#endif
128128

src/platform/silabs/platformAbstraction/GsdkSpam.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ extern "C" {
4949
#include "uart.h"
5050
#endif
5151

52-
#if SL_CATALOG_SYSTEMVIEW_TRACE_PRESENT
52+
#ifdef SL_CATALOG_SYSTEMVIEW_TRACE_PRESENT
5353
#include "SEGGER_SYSVIEW.h"
5454
#endif
5555
}
@@ -78,7 +78,7 @@ CHIP_ERROR SilabsPlatform::Init(void)
7878
sl_ot_sys_init();
7979
#endif
8080

81-
#if SL_CATALOG_SYSTEMVIEW_TRACE_PRESENT
81+
#ifdef SL_CATALOG_SYSTEMVIEW_TRACE_PRESENT
8282
SEGGER_SYSVIEW_Conf();
8383
SEGGER_SYSVIEW_Start();
8484
#endif

third_party/silabs/efr32_sdk.gni

+1-1
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ template("efr32_sdk") {
401401
"${efr32_sdk_root}/util/third_party/segger/systemview/profiles/freertos_v10/",
402402
]
403403

404-
defines += [ "SL_CATALOG_SYSTEMVIEW_TRACE_PRESENT=1" ]
404+
defines += [ "SL_CATALOG_SYSTEMVIEW_TRACE_PRESENT" ]
405405
}
406406

407407
defines += board_defines

0 commit comments

Comments
 (0)