Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Silabs][WiFi]Added changes for 917 NCP sleepy build failure #29748

Merged
merged 7 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions examples/platform/silabs/SiWx917/SiWx917/sl_wifi_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
#include "task.h"
#include "wfx_host_events.h"

#if (EXP_BOARD)
#include "rsi_bt_common_apis.h"
#endif

#include "ble_config.h"

#include "dhcp_client.h"
Expand Down
52 changes: 36 additions & 16 deletions src/platform/silabs/rs911x/rsi_ble_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@

#include "rsi_ble_apis.h"
#if (SIWX_917 | EXP_BOARD)
#include "rsi_bt_common_apis.h"
#include "rsi_user.h"
#else
#include <rsi_data_types.h>
#endif

/******************************************************
* * Macros
* ******************************************************/
Expand Down Expand Up @@ -57,6 +57,17 @@
#define RSI_BLE_DEV_NAME "CCP_DEVICE"
#define RSI_BLE_SET_RAND_ADDR "00:23:A7:12:34:56"

#define CLEAR_WHITELIST (0x00)
#define ADD_DEVICE_TO_WHITELIST (0x01)
#define DELETE_DEVICE_FROM_WHITELIST (0x02)

#define CLEAR_ACCEPTLIST (0x00)
#define ADD_DEVICE_TO_ACCEPTLIST (0x01)
#define DELETE_DEVICE_FROM_ACCEPTLIST (0x02)

#define RSI_BLE_TX_OCTETS 251
#define RSI_BLE_TX_TIME 2120
#define RSI_BLE_MATTER_CUSTOM_SERVICE_DATA_LENGTH 240
#define ALL_PHYS (0x00)

#define RSI_BLE_DEV_ADDR_RESOLUTION_ENABLE (0)
Expand All @@ -72,21 +83,35 @@
#define RSI_BLE_NAME_SPACE (0x01)
#define RSI_BLE_DESCRIPTION (0x010B)

#define RSI_BLE_MAX_NBR_ATT_REC (80)

//! BLE characteristic custom service uuid
#define RSI_BLE_CUSTOM_SERVICE_UUID (0xFFF6)
#define RSI_BLE_CUSTOM_LEVEL_UUID (0x1FF1)
#define RSI_BLE_TX_OCTETS 251
#define RSI_BLE_TX_TIME 2120
#define RSI_BLE_MATTER_CUSTOM_SERVICE_DATA_LENGTH 240

#ifdef RSI_M4_INTERFACE
#define RSI_BLE_MAX_NBR_ATT_REC (20)

#if (SIWX_917 | EXP_BOARD)
#define RSI_BLE_MAX_NBR_PERIPHERALS (1)
#else
#define RSI_BLE_MAX_NBR_SLAVES (1)
#endif

#define RSI_BLE_NUM_CONN_EVENTS (2)
#else
#define RSI_BLE_MAX_NBR_ATT_REC (80)

#if (SIWX_917 | EXP_BOARD)
#define RSI_EXT_TCPIP_FEATURE_BITMAP 0
#define CLEAR_ACCEPTLIST (0x00)
#define ADD_DEVICE_TO_ACCEPTLIST (0x01)
#define DELETE_DEVICE_FROM_ACCEPTLIST (0x02)
#define RSI_BLE_MAX_NBR_PERIPHERALS (3)
#else
#define RSI_BLE_MAX_NBR_SLAVES (3)
#endif

#define RSI_BLE_NUM_CONN_EVENTS (20)
#endif
shgutte marked this conversation as resolved.
Show resolved Hide resolved

#if (SIWX_917 | EXP_BOARD)
#define FRONT_END_SWITCH_SEL2 BIT(30)
#define RSI_EXT_TCPIP_FEATURE_BITMAP 0
#define RSI_BLE_MAX_NBR_CENTRALS (1)
#define RSI_FEATURE_BIT_MAP \
(SL_SI91X_FEAT_ULP_GPIO_BASED_HANDSHAKE | SL_SI91X_FEAT_DEV_TO_HOST_ULP_GPIO_1) //! To set wlan feature select bit map
Expand All @@ -112,15 +137,10 @@
#endif /* CHIP_9117 */

#else // For RS9116
#define RSI_BLE_MAX_NBR_SLAVES (3)
#define RSI_BLE_MAX_NBR_MASTERS (1)
//! set handshake type of power mode
#define RSI_HAND_SHAKE_TYPE GPIO_BASED
#endif
#define CLEAR_WHITELIST (0x00)
#define ADD_DEVICE_TO_WHITELIST (0x01)
#define DELETE_DEVICE_FROM_WHITELIST (0x02)
#define RSI_BLE_NUM_CONN_EVENTS (20)
#endif // (SIWX_917 | EXP_BOARD)

#define RSI_BLE_MAX_NBR_ATT_SERV (10)

Expand Down