Skip to content

Commit

Permalink
[Silabs] WiFi 917SoC including header file (#25981)
Browse files Browse the repository at this point in the history
* modified an argument type

* including rsi_board.h header file, instead of multiple declarations

* Applied restyle

* Adds fix for 917NCP build failure
  • Loading branch information
silabs-srishylam authored Apr 6, 2023
1 parent e2fa6ba commit efaf3aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions examples/platform/silabs/SiWx917/LEDWidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,9 @@

#pragma once

#include "rsi_board.h"
#include <stdint.h>

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:
Expand Down
2 changes: 1 addition & 1 deletion src/platform/silabs/efr32/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion third_party/silabs/efr32_sdk.gni
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
Expand Down

0 comments on commit efaf3aa

Please sign in to comment.