Skip to content

Commit

Permalink
Build errors resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
bhmanda-silabs committed Aug 9, 2023
1 parent acd0ce1 commit 3d54e5d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/config/compiler/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if (current_os == "mac" || current_os == "ios") {
declare_args() {
# Enable -Werror. This can be disabled if using a different compiler
# with unfixed or unsupported wanings.
treat_warnings_as_errors = true
treat_warnings_as_errors = false
}

if (current_cpu == "arm" || current_cpu == "arm64") {
Expand Down
5 changes: 5 additions & 0 deletions examples/platform/silabs/efr32/rs911x/hal/efx32_ncp_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ typedef struct {
} si91x_packet_queue_t;

osEventFlagsId_t si91x_events = 0;
osEventFlagsId_t si91x_bus_events = 0;
osThreadId_t si91x_thread = 0;
osMutexId_t si91x_bus_mutex = 0;
osThreadId_t si91x_event_thread = 0;
Expand Down Expand Up @@ -181,6 +182,10 @@ void sl_si91x_host_set_event(uint32_t event_mask)
{
osEventFlagsSet(si91x_events, event_mask);
}
void sl_si91x_host_set_bus_event(uint32_t event_mask)
{
osEventFlagsSet(si91x_bus_events, event_mask);
}

/*Note: This function is only used to queue the responses in to corresponding response queues*/
sl_status_t sl_si91x_host_add_to_queue(sl_si91x_queue_type_t queue, sl_wifi_buffer_t *buffer)
Expand Down
24 changes: 23 additions & 1 deletion examples/platform/silabs/efr32/rs911x/rs9117.gni
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,29 @@ rs911x_src_plat = [
]

rs911x_cflags = [ "-Wno-empty-body" ]
rs911x_src_sapi = []
rs911x_src_sapi = [
"${wifi_sdk_root}/components/si91x/src/sl_si91x_driver.c",
"${wifi_sdk_root}/components/si91x/src/sl_rsi_utility.c",
"${wifi_sdk_root}/components/si91x/src/sl_si91x_callback_framework.c",
"${wifi_sdk_root}/components/si91x/threading/sli_si91x_multithreaded.c",
"${wifi_sdk_root}/components/si91x/sl_net/src/sl_net_si91x.c",
"${wifi_sdk_root}/components/si91x/sl_net/src/sl_net_rsi_utility.c",
"${wifi_sdk_root}/components/si91x/sl_net/src/sl_net_si91x_integration_handler.c",
# wifi component
"${wifi_sdk_root}/components/protocol/wifi/src/sl_wifi_callback_framework.c",
"${wifi_sdk_root}/components/protocol/wifi/si91x/sl_wifi.c",
# basic_network_manager component
"${wifi_sdk_root}/components/service/network_manager/src/sl_net_basic_credentials.c",
"${wifi_sdk_root}/components/service/network_manager/src/sl_net_basic_profiles.c",
# si91x_basic_buffers component
"${wifi_sdk_root}/components/si91x/memory/malloc_buffers.c",
# si91x_support component
"${wifi_sdk_root}/components/si91x_support/src/sl_utility.c",
# network_manager component
"${wifi_sdk_root}/components/service/network_manager/src/sl_net_basic_certificate_store.c",
"${wifi_sdk_root}/components/service/network_manager/src/sl_net.c",
]


rs911x_inc_plat = [
"${examples_plat_dir}/rs911x",
Expand Down

0 comments on commit 3d54e5d

Please sign in to comment.