diff --git a/examples/platform/silabs/uart.cpp b/examples/platform/silabs/uart.cpp index b8925dc61c4881..0f1a281e533e65 100644 --- a/examples/platform/silabs/uart.cpp +++ b/examples/platform/silabs/uart.cpp @@ -18,7 +18,7 @@ #include "AppConfig.h" #include "matter_shell.h" #include -#include +// #include #include #include diff --git a/src/platform/silabs/CHIPPlatformConfig.h b/src/platform/silabs/CHIPPlatformConfig.h index 7b415554dcc3b5..20b4678c18b682 100644 --- a/src/platform/silabs/CHIPPlatformConfig.h +++ b/src/platform/silabs/CHIPPlatformConfig.h @@ -24,6 +24,7 @@ #pragma once +#include #include #if (SL_MATTER_GN_BUILD == 0) @@ -99,7 +100,7 @@ #define CHIP_CONFIG_MAX_FABRICS 5 // 4 fabrics + 1 for rotation slack #endif -#ifdef SL_ICD_ENABLED +#if defined(CHIP_CONFIG_ENABLE_ICD_SERVER) && CHIP_CONFIG_ENABLE_ICD_SERVER #ifndef CHIP_CONFIG_ICD_IDLE_MODE_DURATION_SEC #define CHIP_CONFIG_ICD_IDLE_MODE_DURATION_SEC SL_IDLE_MODE_DURATION_S @@ -117,7 +118,16 @@ #define CHIP_CONFIG_ICD_CLIENTS_SUPPORTED_PER_FABRIC SL_ICD_SUPPORTED_CLIENTS_PER_FABRIC #endif // CHIP_CONFIG_ICD_CLIENTS_SUPPORTED_PER_FABRIC -#endif // SL_ICD_ENABLED +#endif // defined(CHIP_CONFIG_ENABLE_ICD_SERVER) && CHIP_CONFIG_ENABLE_ICD_SERVER + +/** + * @brief CHIP_SHELL_MAX_LINE_SIZE + * + * @brief Platform maximum line for the Matter Shell + */ +#ifndef CHIP_SHELL_MAX_LINE_SIZE +#define CHIP_SHELL_MAX_LINE_SIZE 256 +#endif // CHIP_SHELL_MAX_LINE_SIZE // ==================== FreeRTOS Configuration Overrides ==================== #ifndef CHIP_CONFIG_FREERTOS_USE_STATIC_TASK diff --git a/third_party/silabs/SiWx917_sdk.gni b/third_party/silabs/SiWx917_sdk.gni index 37dce469b2f17f..8c7635ad9235d3 100644 --- a/third_party/silabs/SiWx917_sdk.gni +++ b/third_party/silabs/SiWx917_sdk.gni @@ -249,7 +249,6 @@ template("siwx917_sdk") { "UDMA_ROMDRIVER_PRESENT=1", "PLL_ROMDRIVER_PRESENT=1", "SL_MATTER_GN_BUILD=1", - "SLI_SI91X_MCU_INTR_BASED_RX_ON_UART=1", ] if (silabs_log_enabled && chip_logging) { @@ -259,7 +258,10 @@ template("siwx917_sdk") { } if (chip_build_libshell) { - defines += [ "ENABLE_CHIP_SHELL" ] + defines += [ + "ENABLE_CHIP_SHELL", + "SLI_SI91X_MCU_INTR_BASED_RX_ON_UART=1", + ] } defines += [ "LWIP_NETIF_API=1" ] @@ -301,7 +303,6 @@ template("siwx917_sdk") { if (!disable_lcd) { defines += [ - "CONFIG_ENABLE_UART", "SYSCALLS_WRITE", "SPI_MULTI_SLAVE", "SL_ULP_TIMER", @@ -310,12 +311,7 @@ template("siwx917_sdk") { # Enabling led interface if (use_wstk_leds) { - defines += [ - "ENABLE_WSTK_LEDS", - - # TODO: remove this when it is added to the board config from wifi sdk - "SL_CATALOG_SIMPLE_LED_LED1_PRESENT", - ] + defines += [ "ENABLE_WSTK_LEDS" ] } if (chip_enable_icd_server) {