Skip to content

Commit cb17629

Browse files
ragurram26jhedberg
authored andcommitted
wiseconnect: Fixed setting of si91x bus events in the driver path
Corrected the assignments of SL_SI91X_SOCKET_DATA_TX_PENDING_EVENT, SL_SI91X_SOCKET_COMMAND_TX_PENDING_EVENT, and SL_SI91X_TA_BUFFER_FULL_CLEAR_EVENT to si91x_bus_event instead of si91x_event, ensuring proper setting for the bus events. Upstream-status: Inappropriate [Zephyr specific workaround for osEventFlags] Signed-off-by: Rahul Gurram <[email protected]>
1 parent 9d32354 commit cb17629

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

wiseconnect/components/device/silabs/si91x/wireless/ahb_interface/src/rsi_hal_mcu_m4_rom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ sl_status_t sli_m4_interrupt_isr(void)
277277

278278
mask_ta_interrupt(TA_RSI_BUFFER_FULL_CLEAR_EVENT);
279279

280-
sli_si91x_set_event(SL_SI91X_TA_BUFFER_FULL_CLEAR_EVENT);
280+
sl_si91x_host_set_bus_event(SL_SI91X_TA_BUFFER_FULL_CLEAR_EVENT);
281281

282282
// Clear the interrupt
283283
clear_ta_to_m4_interrupt(TA_RSI_BUFFER_FULL_CLEAR_EVENT);

wiseconnect/components/device/silabs/si91x/wireless/socket/src/sl_si91x_socket_utility.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ sl_status_t sli_si91x_send_socket_command(sli_si91x_socket_t *socket,
10421042
node_buffer->id = this_packet_id;
10431043
sli_si91x_append_to_buffer_queue(&socket->command_queue.tx_queue, node_buffer);
10441044
tx_socket_command_queues_status |= (1 << socket->index);
1045-
sli_si91x_set_event(SL_SI91X_SOCKET_COMMAND_TX_PENDING_EVENT);
1045+
sl_si91x_host_set_bus_event(SL_SI91X_SOCKET_COMMAND_TX_PENDING_EVENT);
10461046
CORE_ExitAtomic(state);
10471047

10481048
if (wait_period != 0) {
@@ -1130,7 +1130,7 @@ sl_status_t sli_si91x_send_socket_data(sli_si91x_socket_t *si91x_socket,
11301130
CORE_irqState_t state = CORE_EnterAtomic();
11311131
sli_si91x_append_to_buffer_queue(&si91x_socket->tx_data_queue, buffer);
11321132
tx_socket_data_queues_status |= (1 << si91x_socket->index);
1133-
sli_si91x_set_event(SL_SI91X_SOCKET_DATA_TX_PENDING_EVENT);
1133+
sl_si91x_host_set_bus_event(SL_SI91X_SOCKET_DATA_TX_PENDING_EVENT);
11341134
CORE_ExitAtomic(state);
11351135

11361136
return SL_STATUS_OK;

0 commit comments

Comments
 (0)