Skip to content

Commit

Permalink
Changed #if statement to #ifdef for SL_CATALOG_SYSTEMVIEW_TRACE_PRESE…
Browse files Browse the repository at this point in the history
…NT (#32268)
  • Loading branch information
CuRahman authored Feb 22, 2024
1 parent 091ee22 commit 3edfb9c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/platform/silabs/FreeRTOSConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ extern uint32_t SystemCoreClock;
#include "sl_component_catalog.h"
#endif

#if SL_CATALOG_SYSTEMVIEW_TRACE_PRESENT
#ifdef SL_CATALOG_SYSTEMVIEW_TRACE_PRESENT
#include "SEGGER_SYSVIEW_FreeRTOS.h"
#endif

Expand Down
4 changes: 2 additions & 2 deletions src/platform/silabs/platformAbstraction/GsdkSpam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ extern "C" {
#include "uart.h"
#endif

#if SL_CATALOG_SYSTEMVIEW_TRACE_PRESENT
#ifdef SL_CATALOG_SYSTEMVIEW_TRACE_PRESENT
#include "SEGGER_SYSVIEW.h"
#endif
}
Expand Down Expand Up @@ -78,7 +78,7 @@ CHIP_ERROR SilabsPlatform::Init(void)
sl_ot_sys_init();
#endif

#if SL_CATALOG_SYSTEMVIEW_TRACE_PRESENT
#ifdef SL_CATALOG_SYSTEMVIEW_TRACE_PRESENT
SEGGER_SYSVIEW_Conf();
SEGGER_SYSVIEW_Start();
#endif
Expand Down
2 changes: 1 addition & 1 deletion third_party/silabs/efr32_sdk.gni
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ template("efr32_sdk") {
"${efr32_sdk_root}/util/third_party/segger/systemview/profiles/freertos_v10/",
]

defines += [ "SL_CATALOG_SYSTEMVIEW_TRACE_PRESENT=1" ]
defines += [ "SL_CATALOG_SYSTEMVIEW_TRACE_PRESENT" ]
}

defines += board_defines
Expand Down

0 comments on commit 3edfb9c

Please sign in to comment.