Skip to content

Commit

Permalink
Adds wifi-sdk 3.1.0 and required changes for it
Browse files Browse the repository at this point in the history
  • Loading branch information
silabs-srishylam committed Sep 13, 2023
1 parent d8480f1 commit c6a5f1c
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 16 deletions.
1 change: 1 addition & 0 deletions src/platform/silabs/rs911x/BLEManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ void sl_ble_event_handling_task(void)
// Requests the connection parameters change with the remote device
rsi_ble_conn_params_update(event_msg.resp_enh_conn.dev_addr, BLE_MIN_CONNECTION_INTERVAL_MS,
BLE_MAX_CONNECTION_INTERVAL_MS, BLE_SLAVE_LATENCY_MS, BLE_TIMEOUT_MS);
rsi_ble_set_data_len(event_msg.resp_enh_conn.dev_addr, RSI_BLE_TX_OCTETS, RSI_BLE_TX_TIME);
}
break;
case RSI_BLE_DISCONN_EVENT: {
Expand Down
8 changes: 8 additions & 0 deletions src/platform/silabs/rs911x/rsi_ble_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@
#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_CS_DATA_LENGTH 240

#define ALL_PHYS (0x00)

#define RSI_BLE_DEV_ADDR_RESOLUTION_ENABLE (0)
Expand Down
2 changes: 1 addition & 1 deletion src/platform/silabs/rs911x/wfx_sl_ble_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ uint32_t rsi_ble_add_matter_service(void)
uuid_t custom_service = { RSI_BLE_MATTER_CUSTOM_SERVICE_UUID };
custom_service.size = RSI_BLE_MATTER_CUSTOM_SERVICE_SIZE;
custom_service.val.val16 = RSI_BLE_MATTER_CUSTOM_SERVICE_VALUE_16;
uint8_t data[230] = { RSI_BLE_MATTER_CUSTOM_SERVICE_DATA };
uint8_t data[RSI_BLE_CS_DATA_LENGTH] = { RSI_BLE_MATTER_CUSTOM_SERVICE_DATA };

static const uuid_t custom_characteristic_RX = { .size = RSI_BLE_CUSTOM_CHARACTERISTIC_RX_SIZE,
.reserved = { RSI_BLE_CUSTOM_CHARACTERISTIC_RX_RESERVED },
Expand Down
34 changes: 20 additions & 14 deletions third_party/silabs/SiWx917_sdk.gni
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,22 @@ template("siwx917_sdk") {

# siwx917_soc component
"${wifi_sdk_root}/components/siwx917_soc/inc",
"${wifi_sdk_root}/components/siwx917_soc/boards/config/brd4325b",
"${wifi_sdk_root}/components/siwx917_soc/boards/inc",
"${wifi_sdk_root}/components/siwx917_soc/core/chip/inc",
"${wifi_sdk_root}/components/siwx917_soc/core/config",
"${wifi_sdk_root}/components/siwx917_soc/drivers/cmsis_driver",
"${wifi_sdk_root}/components/siwx917_soc/drivers/cmsis_driver/config",
"${wifi_sdk_root}/components/siwx917_soc/drivers/cmsis_driver/CMSIS/Driver/Include",
"${wifi_sdk_root}/components/siwx917_soc/drivers/service/nvm3/inc",
"${wifi_sdk_root}/components/siwx917_soc/drivers/systemlevel/inc",
"${wifi_sdk_root}/components/siwx917_soc/drivers/peripheral_drivers/inc",
"${wifi_sdk_root}/components/siwx917_soc/drivers/rom_driver/inc",
"${wifi_sdk_root}/components/siwx917_soc/drivers/unified_api/inc",
"${wifi_sdk_root}/components/siwx917_soc/drivers/unified_api/config",
"${wifi_sdk_root}/components/siwx917_soc/boards/brd4325x/inc",
"${wifi_sdk_root}/components/siwx917_soc/wifi_inc",
"${wifi_sdk_root}/components/siwx917_soc/hal/inc",
"${wifi_sdk_root}/components/siwx917_soc/platform_connectivity/inc",
"${wifi_sdk_root}/components/siwx917_soc/platform_connectivity/wifi_inc",

# wifi component
"${wifi_sdk_root}/components/protocol/wifi/inc",
Expand Down Expand Up @@ -163,6 +169,7 @@ template("siwx917_sdk") {
"FLASH_PAGE_SIZE",
"SL_NVM3_PRESENT",
"ROM_WIRELESS",
"BRD4325A", #TODO: should be removed after SoC macro clean-up
]

if (silabs_board == "BRD4325B") {
Expand Down Expand Up @@ -319,13 +326,12 @@ template("siwx917_sdk") {

# si91x_support component
"${wifi_sdk_root}/components/si91x_support/src/sl_utility.c",
"${wifi_sdk_root}/components/siwx917_soc/boards/brd4325x/src/rsi_board.c",
"${wifi_sdk_root}/components/siwx917_soc/boards/src/rsi_board.c",
"${wifi_sdk_root}/components/siwx917_soc/core/chip/src/rsi_deepsleep_soc.c",
"${wifi_sdk_root}/components/siwx917_soc/core/chip/src/rsi_system_config.c",
"${wifi_sdk_root}/components/siwx917_soc/core/chip/src/system_si91x.c",
"${wifi_sdk_root}/components/siwx917_soc/drivers/cmsis_driver/UDMA.c",
"${wifi_sdk_root}/components/siwx917_soc/drivers/cmsis_driver/USART.c",
"${wifi_sdk_root}/components/siwx917_soc/drivers/ipmu/ipmu_apis.c",
"${wifi_sdk_root}/components/siwx917_soc/drivers/ipmu/rsi_system_config_9117.c",
"${wifi_sdk_root}/components/siwx917_soc/drivers/peripheral_drivers/src/clock_update.c",
"${wifi_sdk_root}/components/siwx917_soc/drivers/peripheral_drivers/src/rsi_egpio.c",
"${wifi_sdk_root}/components/siwx917_soc/drivers/peripheral_drivers/src/rsi_udma.c",
Expand All @@ -339,13 +345,13 @@ template("siwx917_sdk") {
"${wifi_sdk_root}/components/siwx917_soc/drivers/systemlevel/src/rsi_temp_sensor.c",
"${wifi_sdk_root}/components/siwx917_soc/drivers/systemlevel/src/rsi_ulpss_clk.c",
"${wifi_sdk_root}/components/siwx917_soc/drivers/unified_api/src/sl_si91x_usart.c",
"${wifi_sdk_root}/components/siwx917_soc/rsi_hal_mcu_m4_ram.c",
"${wifi_sdk_root}/components/siwx917_soc/rsi_hal_mcu_m4_rom.c",
"${wifi_sdk_root}/components/siwx917_soc/sl_platform.c",
"${wifi_sdk_root}/components/siwx917_soc/sl_platform_wireless.c",
"${wifi_sdk_root}/components/siwx917_soc/sl_si91x_bus.c",
"${wifi_sdk_root}/components/siwx917_soc/sl_si91x_timer.c",
"${wifi_sdk_root}/components/siwx917_soc/sli_siwx917_soc.c",
"${wifi_sdk_root}/components/siwx917_soc/platform_connectivity/rsi_hal_mcu_m4_ram.c",
"${wifi_sdk_root}/components/siwx917_soc/platform_connectivity/rsi_hal_mcu_m4_rom.c",
"${wifi_sdk_root}/components/siwx917_soc/platform_connectivity/sl_platform.c",
"${wifi_sdk_root}/components/siwx917_soc/platform_connectivity/sl_platform_wireless.c",
"${wifi_sdk_root}/components/siwx917_soc/platform_connectivity/sl_si91x_bus.c",
"${wifi_sdk_root}/components/siwx917_soc/platform_connectivity/sl_si91x_timer.c",
"${wifi_sdk_root}/components/siwx917_soc/platform_connectivity/sli_siwx917_soc.c",

# modified hal
"${efr32_sdk_root}/platform/emdrv/nvm3/src/nvm3_default_common_linker.c",
Expand All @@ -364,7 +370,7 @@ template("siwx917_sdk") {
"${sdk_support_root}/matter/si91x/siwx917/BRD4325x/autogen/sl_event_handler.c",
"${sdk_support_root}/matter/si91x/siwx917/BRD4325x/support/hal/rsi_hal_mcu_m4.c",
"${sdk_support_root}/matter/si91x/siwx917/BRD4325x/support/hal/rsi_hal_mcu_platform_init.c",
"${wifi_sdk_root}/components/siwx917_soc/drivers/middleware/nvm3/src/sl_si91x_nvm3_hal_flash.c",
"${wifi_sdk_root}/components/siwx917_soc/drivers/service/nvm3/src/sl_si91x_nvm3_hal_flash.c",

# mbedtls
"${chip_root}/third_party/mbedtls/repo/library/aes.c",
Expand Down Expand Up @@ -414,7 +420,7 @@ template("siwx917_sdk") {
if (wifi_soc_common_flash) {
sources += [
"${sdk_support_root}/matter/si91x/siwx917/BRD4325x/support/src/startup_common_RS1xxxx.c",
"${wifi_sdk_root}/components/siwx917_soc/drivers/middleware/nvm3/src/sl_si91x_common_flash_intf.c",
"${wifi_sdk_root}/components/siwx917_soc/drivers/service/nvm3/src/sl_si91x_common_flash_intf.c",
]
}

Expand Down
2 changes: 1 addition & 1 deletion third_party/silabs/wifi_sdk
Submodule wifi_sdk updated 1961 files

0 comments on commit c6a5f1c

Please sign in to comment.