Skip to content

Commit 136c58e

Browse files
Fix uart define usage
1 parent 01ccac7 commit 136c58e

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

examples/platform/silabs/uart.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include "AppConfig.h"
1919
#include "matter_shell.h"
2020
#include <cmsis_os2.h>
21-
#include <lib/shell/Engine.h>
21+
// #include <lib/shell/Engine.h>
2222
#include <platform/CHIPDeviceLayer.h>
2323
#include <sl_cmsis_os2_common.h>
2424

src/platform/silabs/CHIPPlatformConfig.h

+12-2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
#pragma once
2626

27+
#include <app/icd/server/ICDServerConfig.h>
2728
#include <stdint.h>
2829

2930
#if (SL_MATTER_GN_BUILD == 0)
@@ -99,7 +100,7 @@
99100
#define CHIP_CONFIG_MAX_FABRICS 5 // 4 fabrics + 1 for rotation slack
100101
#endif
101102

102-
#ifdef SL_ICD_ENABLED
103+
#if defined(CHIP_CONFIG_ENABLE_ICD_SERVER) && CHIP_CONFIG_ENABLE_ICD_SERVER
103104

104105
#ifndef CHIP_CONFIG_ICD_IDLE_MODE_DURATION_SEC
105106
#define CHIP_CONFIG_ICD_IDLE_MODE_DURATION_SEC SL_IDLE_MODE_DURATION_S
@@ -117,7 +118,16 @@
117118
#define CHIP_CONFIG_ICD_CLIENTS_SUPPORTED_PER_FABRIC SL_ICD_SUPPORTED_CLIENTS_PER_FABRIC
118119
#endif // CHIP_CONFIG_ICD_CLIENTS_SUPPORTED_PER_FABRIC
119120

120-
#endif // SL_ICD_ENABLED
121+
#endif // defined(CHIP_CONFIG_ENABLE_ICD_SERVER) && CHIP_CONFIG_ENABLE_ICD_SERVER
122+
123+
/**
124+
* @brief CHIP_SHELL_MAX_LINE_SIZE
125+
*
126+
* @brief Platform maximum line for the Matter Shell
127+
*/
128+
#ifndef CHIP_SHELL_MAX_LINE_SIZE
129+
#define CHIP_SHELL_MAX_LINE_SIZE 256
130+
#endif // CHIP_SHELL_MAX_LINE_SIZE
121131

122132
// ==================== FreeRTOS Configuration Overrides ====================
123133
#ifndef CHIP_CONFIG_FREERTOS_USE_STATIC_TASK

third_party/silabs/SiWx917_sdk.gni

+5-9
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,6 @@ template("siwx917_sdk") {
249249
"UDMA_ROMDRIVER_PRESENT=1",
250250
"PLL_ROMDRIVER_PRESENT=1",
251251
"SL_MATTER_GN_BUILD=1",
252-
"SLI_SI91X_MCU_INTR_BASED_RX_ON_UART=1",
253252
]
254253

255254
if (silabs_log_enabled && chip_logging) {
@@ -259,7 +258,10 @@ template("siwx917_sdk") {
259258
}
260259

261260
if (chip_build_libshell) {
262-
defines += [ "ENABLE_CHIP_SHELL" ]
261+
defines += [
262+
"ENABLE_CHIP_SHELL",
263+
"SLI_SI91X_MCU_INTR_BASED_RX_ON_UART=1",
264+
]
263265
}
264266

265267
defines += [ "LWIP_NETIF_API=1" ]
@@ -301,7 +303,6 @@ template("siwx917_sdk") {
301303

302304
if (!disable_lcd) {
303305
defines += [
304-
"CONFIG_ENABLE_UART",
305306
"SYSCALLS_WRITE",
306307
"SPI_MULTI_SLAVE",
307308
"SL_ULP_TIMER",
@@ -310,12 +311,7 @@ template("siwx917_sdk") {
310311

311312
# Enabling led interface
312313
if (use_wstk_leds) {
313-
defines += [
314-
"ENABLE_WSTK_LEDS",
315-
316-
# TODO: remove this when it is added to the board config from wifi sdk
317-
"SL_CATALOG_SIMPLE_LED_LED1_PRESENT",
318-
]
314+
defines += [ "ENABLE_WSTK_LEDS" ]
319315
}
320316

321317
if (chip_enable_icd_server) {

0 commit comments

Comments
 (0)