From 54087140c4b1b1c0e941d3cbd6e5fef65d7baeee Mon Sep 17 00:00:00 2001 From: srningap <107042150+srningap@users.noreply.github.com> Date: Thu, 6 Apr 2023 20:38:32 +0530 Subject: [PATCH] [Silabs] WiFi 917SoC including header file (#25981) * modified an argument type * including rsi_board.h header file, instead of multiple declarations * Applied restyle * Adds fix for 917NCP build failure --- examples/platform/silabs/SiWx917/LEDWidget.h | 5 +---- src/platform/silabs/efr32/BUILD.gn | 2 +- third_party/silabs/efr32_sdk.gni | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/examples/platform/silabs/SiWx917/LEDWidget.h b/examples/platform/silabs/SiWx917/LEDWidget.h index 44fb1937ee0f33..f033cb26c50f64 100644 --- a/examples/platform/silabs/SiWx917/LEDWidget.h +++ b/examples/platform/silabs/SiWx917/LEDWidget.h @@ -19,12 +19,9 @@ #pragma once +#include "rsi_board.h" #include -extern "C" void RSI_Board_LED_Set(int, bool); -extern "C" void RSI_Board_LED_Toggle(int); -extern "C" bool RSI_Board_LED_GetState(int); - class LEDWidget { public: diff --git a/src/platform/silabs/efr32/BUILD.gn b/src/platform/silabs/efr32/BUILD.gn index 5d5bde61f33f4b..1f43416c8013bb 100644 --- a/src/platform/silabs/efr32/BUILD.gn +++ b/src/platform/silabs/efr32/BUILD.gn @@ -131,7 +131,7 @@ static_library("efr32") { "wifi/wifi_config.h", ] - if (use_wf200 || use_rs9116) { + if (use_wf200 || use_rs9116 || use_SiWx917) { sources += [ "wifi/dhcp_client.cpp", "wifi/dhcp_client.h", diff --git a/third_party/silabs/efr32_sdk.gni b/third_party/silabs/efr32_sdk.gni index 6926ae35e79f10..55ff1066d214ff 100644 --- a/third_party/silabs/efr32_sdk.gni +++ b/third_party/silabs/efr32_sdk.gni @@ -273,7 +273,7 @@ template("efr32_sdk") { ] } - if (use_wf200 || use_rs9116) { + if (use_wf200 || use_rs9116 || use_SiWx917) { import("${chip_root}/src/platform/silabs/efr32/wifi_args.gni") defines += [ "LWIP_NETIF_API=1" ]