Skip to content

Commit

Permalink
Fix missing include
Browse files Browse the repository at this point in the history
  • Loading branch information
mkardous-silabs committed Nov 16, 2024
1 parent ab00c75 commit 8e43207
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/platform/silabs/wifi/WifiInterfaceAbstraction.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 3 additions & 12 deletions src/platform/silabs/wifi/wf200/WifiInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions src/platform/silabs/wifi/wf200/platform/sl_wfx_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* limitations under the License.
*/

//TODO: Should use the file from simplicity sdk

#pragma once

#include "FreeRTOS.h"
Expand All @@ -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);

Expand Down

0 comments on commit 8e43207

Please sign in to comment.