Skip to content

Commit

Permalink
[Silabs][Wi-Fi]- Update to 917 soc freertos settings (project-chip#31071
Browse files Browse the repository at this point in the history
)

* Unused variable status in sl_wifi_if.c

* Increased HEAP Size for SOC DIC AWS OTA

* Restyled by clang-format

* Removed typo mistake

* Removing the wfx_rsi_alloc_pkt API from sl_wifi_if.c as it is not being used anywhere in code for 917NCP and SOC boards.

---------

Co-authored-by: Restyled.io <commits@restyled.io>
Co-authored-by: Arun Padakanti <arunkumar.padakanti@silabs.com>
  • Loading branch information
3 people authored Jan 6, 2024
1 parent 7960459 commit ca040f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 33 deletions.
4 changes: 4 additions & 0 deletions examples/platform/silabs/FreeRTOSConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,11 @@ See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */
#ifndef configTOTAL_HEAP_SIZE
#ifdef SL_WIFI
#ifdef DIC_ENABLE
#ifdef SIWX_917
#define configTOTAL_HEAP_SIZE ((size_t) ((75 + EXTRA_HEAP_k) * 1024))
#else
#define configTOTAL_HEAP_SIZE ((size_t) ((68 + EXTRA_HEAP_k) * 1024))
#endif // SIWX_917
#else
#define configTOTAL_HEAP_SIZE ((size_t) ((42 + EXTRA_HEAP_k) * 1024))
#endif // DIC
Expand Down
33 changes: 0 additions & 33 deletions examples/platform/silabs/SiWx917/SiWx917/sl_wifi_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -769,39 +769,6 @@ void wfx_dhcp_got_ipv4(uint32_t ip)
}
#endif /* CHIP_DEVICE_CONFIG_ENABLE_IPV4 */

#if !EXP_BOARD
/*
* WARNING - Taken from RSI and broken up
* This is my own RSI stuff for not copying code and allocating an extra
* level of indirection - when using LWIP buffers
* see also: int32_t rsi_wlan_send_data_xx(uint8_t *buffer, uint32_t length)
*/
/********************************************************************************************
* @fn void *wfx_rsi_alloc_pkt()
* @brief
* Allocate packet to send data
* @param[in] None
* @return
* None
**********************************************************************************************/
void * wfx_rsi_alloc_pkt(uint16_t data_length)
{
sl_wifi_buffer_t * buffer;
sl_si91x_packet_t * packet;
sl_status_t status = SL_STATUS_OK;

/* Confirm if packet is allocated */

status = sl_si91x_allocate_command_buffer(&buffer, (void **) &packet, sizeof(sl_si91x_packet_t) + data_length,
SL_WIFI_ALLOCATE_COMMAND_BUFFER_WAIT_TIME_MS);
if (packet == NULL)
{
return SL_STATUS_ALLOCATION_FAILED;
}
return (void *) packet;
}
#endif

/********************************************************************************************
* @fn void wfx_rsi_pkt_add_data(void *p, uint8_t *buf, uint16_t len, uint16_t off)
* @brief
Expand Down

0 comments on commit ca040f6

Please sign in to comment.