File tree 2 files changed +7
-5
lines changed
examples/platform/silabs/SiWx917
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ source_set("siwx917-common") {
223
223
" SiWx917/wfx_rsi_host.c" ,
224
224
]
225
225
226
- if (chip_enable_pw_rpc || chip_build_libshell ) {
226
+ if (chip_enable_pw_rpc || chip_build_libshell || sl_uart_log_output ) {
227
227
sources += [ " uart.cpp" ]
228
228
}
229
229
@@ -241,10 +241,6 @@ source_set("siwx917-common") {
241
241
public_deps += [ " ${ chip_root } /examples/common/QRCode" ]
242
242
}
243
243
244
- if (sl_uart_log_output ) {
245
- sources += [ " ${ silabs_common_plat_dir } /SiWx917/uart.cpp" ]
246
- }
247
-
248
244
if (enable_heap_monitoring ) {
249
245
sources += [ " ${ silabs_common_plat_dir } /MemMonitoring.cpp" ]
250
246
}
Original file line number Diff line number Diff line change 55
55
#endif
56
56
57
57
#if SILABS_LOG_OUT_UART
58
+ #if SIWX_917
58
59
#include " rsi_debug.h"
60
+ #endif // SIWX_917
59
61
#include " uart.h"
60
62
#endif
61
63
@@ -136,13 +138,17 @@ static void PrintLog(const char * msg)
136
138
sz = strlen (msg);
137
139
138
140
#if SILABS_LOG_OUT_UART
141
+ #if SIWX_917
139
142
for (/* Empty */ ; sz != 0 ; --sz)
140
143
{
141
144
Board_UARTPutChar (*msg++);
142
145
}
143
146
// To print next log in new line with proper formatting
144
147
Board_UARTPutChar (' \r ' );
145
148
Board_UARTPutChar (' \n ' );
149
+ #else
150
+ uartLogWrite (msg, sz);
151
+ #endif // SIWX_917
146
152
#elif PW_RPC_ENABLED
147
153
PigweedLogger::putString (msg, sz);
148
154
#else
You can’t perform that action at this time.
0 commit comments