From 8e43207691001994d375767967bbbc5460ed6a20 Mon Sep 17 00:00:00 2001 From: Mathieu Kardous Date: Sat, 16 Nov 2024 12:13:50 -0500 Subject: [PATCH] Fix missing include --- .../silabs/wifi/WifiInterfaceAbstraction.h | 1 - src/platform/silabs/wifi/wf200/WifiInterface.cpp | 15 +++------------ .../silabs/wifi/wf200/platform/sl_wfx_host.h | 3 +++ 3 files changed, 6 insertions(+), 13 deletions(-) diff --git a/src/platform/silabs/wifi/WifiInterfaceAbstraction.h b/src/platform/silabs/wifi/WifiInterfaceAbstraction.h index d7cfb30287..19ac163dc1 100644 --- a/src/platform/silabs/wifi/WifiInterfaceAbstraction.h +++ b/src/platform/silabs/wifi/WifiInterfaceAbstraction.h @@ -296,7 +296,6 @@ void sl_button_on_change(uint8_t btn, uint8_t btnAction); #ifdef WF200_WIFI void sl_wfx_host_gpio_init(void); void wfx_bus_start(void); -sl_status_t sl_wfx_host_process_event(sl_wfx_generic_message_t * event_payload); #endif /* WF200_WIFI */ #ifdef __cplusplus diff --git a/src/platform/silabs/wifi/wf200/WifiInterface.cpp b/src/platform/silabs/wifi/wf200/WifiInterface.cpp index 6d2ce15b82..7ed24dc5b8 100644 --- a/src/platform/silabs/wifi/wf200/WifiInterface.cpp +++ b/src/platform/silabs/wifi/wf200/WifiInterface.cpp @@ -224,16 +224,6 @@ typedef struct __attribute__((__packed__)) sl_wfx_mib_req_s sl_wfx_get_counters_cnf_t * counters; -/**************************************************************************** - * @brief - * get the wifi state - * @return returns wificonetext state - *****************************************************************************/ -sl_wfx_state_t wfx_get_wifi_state(void) -{ - return wifiContext.state; -} - sl_status_t get_all_counters(void) { sl_status_t result; @@ -328,7 +318,8 @@ static void wfx_events_task_start(void) * @returns Returns SL_STATUS_OK if successful, *SL_STATUS_FAIL otherwise *****************************************************************************/ -sl_status_t sl_wfx_host_process_event(sl_wfx_generic_message_t * event_payload) +// TODO: This shoud me moved to the Wf20 +extern "C" sl_status_t sl_wfx_host_process_event(sl_wfx_generic_message_t * event_payload) { switch (event_payload->header.id) { @@ -1219,7 +1210,7 @@ void wfx_dhcp_got_ipv4(uint32_t ip) */ uint8_t ip4_addr[4]; - ip4_addr[0] = (ip) &0xFF; + ip4_addr[0] = (ip) & 0xFF; ip4_addr[1] = (ip >> 8) & 0xFF; ip4_addr[2] = (ip >> 16) & 0xFF; ip4_addr[3] = (ip >> 24) & 0xFF; diff --git a/src/platform/silabs/wifi/wf200/platform/sl_wfx_host.h b/src/platform/silabs/wifi/wf200/platform/sl_wfx_host.h index dc9bcd2852..abeea45ee6 100644 --- a/src/platform/silabs/wifi/wf200/platform/sl_wfx_host.h +++ b/src/platform/silabs/wifi/wf200/platform/sl_wfx_host.h @@ -15,6 +15,8 @@ * limitations under the License. */ +//TODO: Should use the file from simplicity sdk + #pragma once #include "FreeRTOS.h" @@ -26,6 +28,7 @@ #ifdef __cplusplus extern "C" { #endif +sl_status_t sl_wfx_host_process_event(sl_wfx_generic_message_t * event_payload); uint8_t sl_wfx_host_get_waited_event(void); sl_status_t wfx_soft_init(void);