Skip to content

Commit

Permalink
Fix example builds (project-chip#37125)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkardous-silabs authored Jan 20, 2025
1 parent d64768e commit ad3f882
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ default_args = {
target_cpu = "arm"
target_os = "freertos"
chip_enable_wifi = true
chip_device_platform = "SiWx917"
import("//build_for_wifi_args.gni")
}
9 changes: 9 additions & 0 deletions examples/dishwasher-app/silabs/src/DeviceEnergyManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,12 @@ DeviceEnergyManagementDelegate * DeviceEnergyManager::GetDEMDelegate()
{
return gDEMDelegate.get();
};

/**
* @brief Returns the EndpointID of the DeviceEnergyManagement cluster.
* The energy management cluster assumes this functions is global to be able to leverage it.
*/
EndpointId GetEnergyDeviceEndpointId()
{
return DataModelHelper::GetEndpointIdFromCluster(DeviceEnergyManagement::Id);
}
1 change: 1 addition & 0 deletions examples/lit-icd-app/silabs/build_for_wifi_gnfile.gn
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ default_args = {
target_cpu = "arm"
target_os = "freertos"
chip_enable_wifi = true
chip_device_platform = "SiWx917"
import("//build_for_wifi_args.gni")
}
1 change: 1 addition & 0 deletions examples/pump-app/silabs/build_for_wifi_gnfile.gn
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ default_args = {
target_cpu = "arm"
target_os = "freertos"
chip_enable_wifi = true
chip_device_platform = "SiWx917"
import("//build_for_wifi_args.gni")
}
2 changes: 1 addition & 1 deletion examples/refrigerator-app/silabs/src/RefrigeratorUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

// Only needed for wifi NCP devices
#if SL_WIFI && !defined(SLI_SI91X_MCU_INTERFACE)
#include <platform/silabs/wifi/wf200/platform/spi_multiplex.h>
#include <platform/silabs/wifi/ncp/spi_multiplex.h>
#endif // SL_WIFI && !defined(SLI_SI91X_MCU_INTERFACE)

// LCD line define
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ default_args = {
target_cpu = "arm"
target_os = "freertos"
chip_enable_wifi = true
chip_device_platform = "SiWx917"
import("//build_for_wifi_args.gni")
}
2 changes: 1 addition & 1 deletion examples/thermostat/silabs/src/ThermostatUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

// Only needed for wifi NCP devices
#if SL_WIFI && !defined(SLI_SI91X_MCU_INTERFACE)
#include <platform/silabs/wifi/wf200/platform/spi_multiplex.h>
#include <platform/silabs/wifi/ncp/spi_multiplex.h>
#endif // SL_WIFI && !defined(SLI_SI91X_MCU_INTERFACE)

// LCD line define
Expand Down
2 changes: 1 addition & 1 deletion src/platform/silabs/multi-ota/OTACustomProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <app/clusters/ota-requestor/OTARequestorInterface.h>

#if SL_WIFI
#include <platform/silabs/wifi/wf200/platform/spi_multiplex.h>
#include <platform/silabs/wifi/ncp/spi_multiplex.h>
#endif // SL_WIFI

extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion src/platform/silabs/multi-ota/OTAFirmwareProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <app/clusters/ota-requestor/OTARequestorInterface.h>

#if SL_WIFI
#include <platform/silabs/wifi/wf200/platform/spi_multiplex.h>
#include <platform/silabs/wifi/ncp/spi_multiplex.h>
#endif // SL_WIFI

extern "C" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ using namespace ::chip::DeviceLayer::Internal;
static chip::OTAMultiImageProcessorImpl gImageProcessor;

#if SL_WIFI
#include <platform/silabs/wifi/wf200/platform/spi_multiplex.h>
#include <platform/silabs/wifi/ncp/spi_multiplex.h>
#endif // SL_WIFI

extern "C" {
Expand Down

0 comments on commit ad3f882

Please sign in to comment.