Skip to content

Commit

Permalink
Fix 917 logs (#26630)
Browse files Browse the repository at this point in the history
  • Loading branch information
jepenven-silabs authored and pull[bot] committed Aug 17, 2023
1 parent 7a76ad0 commit 1343096
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 15 deletions.
2 changes: 2 additions & 0 deletions examples/platform/silabs/SiWx917/SiWx917/rsi_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
#include "rsi_driver.h"
#include "rsi_wlan_non_rom.h"

#include "silabs_utils.h"

#include "rsi_bootup_config.h"
#include "rsi_common_apis.h"
#include "rsi_data_types.h"
Expand Down
2 changes: 2 additions & 0 deletions examples/platform/silabs/SiWx917/SiWx917/wfx_rsi_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

#include "sl_status.h"

#include "silabs_utils.h"

#include "FreeRTOS.h"
#include "event_groups.h"
#include "task.h"
Expand Down
2 changes: 0 additions & 2 deletions examples/platform/silabs/silabs_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
*/

#include "silabs_utils.h"
#include "init_efrPlatform.h"
#include "sl_system_kernel.h"

#include <matter_config.h>

Expand Down
5 changes: 0 additions & 5 deletions src/platform/silabs/rs911x/BLEManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,38 +118,33 @@ void sl_ble_event_handling_task(void)
case RSI_BLE_CONN_EVENT: {
rsi_ble_app_clear_event(RSI_BLE_CONN_EVENT);
BLEMgrImpl().HandleConnectEvent();
SILABS_LOG("%s Module got connected", __func__);
// 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);
}
break;
case RSI_BLE_DISCONN_EVENT: {
// event invokes when disconnection was completed
SILABS_LOG("%s Module got Disconnected", __func__);
BLEMgrImpl().HandleConnectionCloseEvent(event_msg.reason);
// clear the served event
rsi_ble_app_clear_event(RSI_BLE_DISCONN_EVENT);
}
break;
case RSI_BLE_MTU_EVENT: {
// event invokes when write/notification events received
SILABS_LOG("%s RSI_BLE_MTU_EVENT", __func__);
BLEMgrImpl().UpdateMtu(event_msg.rsi_ble_mtu);
// clear the served event
rsi_ble_app_clear_event(RSI_BLE_MTU_EVENT);
}
break;
case RSI_BLE_GATT_WRITE_EVENT: {
// event invokes when write/notification events received
SILABS_LOG("%s RSI_BLE_GATT_WRITE_EVENT", __func__);
BLEMgrImpl().HandleWriteEvent(event_msg.rsi_ble_write);
// clear the served event
rsi_ble_app_clear_event(RSI_BLE_GATT_WRITE_EVENT);
}
break;
case RSI_BLE_GATT_INDICATION_CONFIRMATION: {
SILABS_LOG("%s indication confirmation", __func__);
BLEMgrImpl().HandleTxConfirmationEvent(1);
rsi_ble_app_clear_event(RSI_BLE_GATT_INDICATION_CONFIRMATION);
}
Expand Down
8 changes: 0 additions & 8 deletions src/platform/silabs/rs911x/wfx_sl_ble_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ const uint8_t ShortUUID_CHIPoBLEService[] = { 0xF6, 0xFF };
*/
void rsi_ble_app_init_events()
{
SILABS_LOG("%s: starting", __func__);
event_msg.ble_app_event_map = 0;
event_msg.ble_app_event_mask = 0xFFFFFFFF;
event_msg.ble_app_event_mask = event_msg.ble_app_event_mask; // To suppress warning while compiling
Expand All @@ -62,7 +61,6 @@ void rsi_ble_app_init_events()
*/
void rsi_ble_app_clear_event(uint32_t event_num)
{
SILABS_LOG("%s: starting", __func__);
event_msg.event_num = event_num;
event_msg.ble_app_event_map &= ~BIT(event_num);
return;
Expand All @@ -79,7 +77,6 @@ void rsi_ble_app_clear_event(uint32_t event_num)
*/
void rsi_ble_on_mtu_event(rsi_ble_event_mtu_t * rsi_ble_mtu)
{
SILABS_LOG("%s: starting", __func__);
memcpy(&event_msg.rsi_ble_mtu, rsi_ble_mtu, sizeof(rsi_ble_event_mtu_t));
rsi_ble_app_set_event(RSI_BLE_MTU_EVENT);
}
Expand All @@ -96,7 +93,6 @@ void rsi_ble_on_mtu_event(rsi_ble_event_mtu_t * rsi_ble_mtu)
*/
void rsi_ble_on_gatt_write_event(uint16_t event_id, rsi_ble_event_write_t * rsi_ble_write)
{
SILABS_LOG("%s: starting", __func__);
event_msg.event_id = event_id;
memcpy(&event_msg.rsi_ble_write, rsi_ble_write, sizeof(rsi_ble_event_write_t));
rsi_ble_app_set_event(RSI_BLE_GATT_WRITE_EVENT);
Expand All @@ -113,7 +109,6 @@ void rsi_ble_on_gatt_write_event(uint16_t event_id, rsi_ble_event_write_t * rsi_
*/
void rsi_ble_on_enhance_conn_status_event(rsi_ble_event_enhance_conn_status_t * resp_enh_conn)
{
SILABS_LOG("%s: starting", __func__);
event_msg.connectionHandle = 1;
event_msg.bondingHandle = 255;
memcpy(event_msg.resp_enh_conn.dev_addr, resp_enh_conn->dev_addr, RSI_DEV_ADDR_LEN);
Expand All @@ -132,7 +127,6 @@ void rsi_ble_on_enhance_conn_status_event(rsi_ble_event_enhance_conn_status_t *
*/
void rsi_ble_on_disconnect_event(rsi_ble_event_disconnect_t * resp_disconnect, uint16_t reason)
{
SILABS_LOG("%s: starting", __func__);
event_msg.reason = reason;
rsi_ble_app_set_event(RSI_BLE_DISCONN_EVENT);
}
Expand All @@ -148,7 +142,6 @@ void rsi_ble_on_disconnect_event(rsi_ble_event_disconnect_t * resp_disconnect, u
*/
void rsi_ble_on_event_indication_confirmation(uint16_t resp_status, rsi_ble_set_att_resp_t * rsi_ble_event_set_att_rsp)
{
SILABS_LOG("%s: starting", __func__);
event_msg.resp_status = resp_status;
memcpy(&event_msg.rsi_ble_event_set_att_rsp, rsi_ble_event_set_att_rsp, sizeof(rsi_ble_set_att_resp_t));
rsi_ble_app_set_event(RSI_BLE_GATT_INDICATION_CONFIRMATION);
Expand Down Expand Up @@ -191,7 +184,6 @@ int32_t rsi_ble_app_get_event(void)
*/
void rsi_ble_app_set_event(uint32_t event_num)
{
SILABS_LOG("%s: starting", __func__);
event_msg.ble_app_event_map |= BIT(event_num);
rsi_semaphore_post(&sl_ble_event_sem);
return;
Expand Down

0 comments on commit 1343096

Please sign in to comment.