Skip to content

Commit 8ef670c

Browse files
committed
nrf_802154: rev ec057fae29515cff152d52a9a3e0b7fbbfec90eb
This commit updates revision of the nrf_802154 component. Signed-off-by: Rafal Kuznia <[email protected]>
1 parent bdace5c commit 8ef670c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

nrf_802154/driver/src/mac_features/nrf_802154_csma_ca.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ static bool csma_ca_state_set(csma_ca_state_t expected, csma_ca_state_t desired)
100100
{
101101
nrf_802154_sl_log_function_enter(NRF_802154_LOG_VERBOSITY_HIGH);
102102

103-
bool result = nrf_802154_sl_atomic_cas_u8(&m_state, &expected, desired);
103+
bool result = nrf_802154_sl_atomic_cas_u8((uint8_t *)&m_state, (uint8_t *)&expected, desired);
104104

105105
if (result)
106106
{
@@ -401,7 +401,7 @@ bool nrf_802154_csma_ca_abort(nrf_802154_term_t term_lvl, req_originator_t req_o
401401
bool result = true;
402402

403403
if (((req_orig != REQ_ORIG_CORE) && (req_orig != REQ_ORIG_HIGHER_LAYER)) ||
404-
(CSMA_CA_STATE_IDLE == nrf_802154_sl_atomic_load_u8(&m_state)))
404+
(CSMA_CA_STATE_IDLE == nrf_802154_sl_atomic_load_u8((uint8_t *)&m_state)))
405405
{
406406
// The request does not originate from core or the higher layer or the procedure
407407
// is stopped already. Ignore the abort request and return success, no matter
@@ -412,7 +412,7 @@ bool nrf_802154_csma_ca_abort(nrf_802154_term_t term_lvl, req_originator_t req_o
412412
// The procedure is active and the termination level allows the abort
413413
// request to be executed. Force aborted state. Don't clear the frame
414414
// pointer - it might be needed to notify failure.
415-
nrf_802154_sl_atomic_store_u8(&m_state, CSMA_CA_STATE_ABORTED);
415+
nrf_802154_sl_atomic_store_u8((uint8_t *)&m_state, CSMA_CA_STATE_ABORTED);
416416
nrf_802154_rsch_delayed_timeslot_cancel(NRF_802154_RESERVED_CSMACA_ID, false);
417417
}
418418
else
@@ -445,7 +445,7 @@ bool nrf_802154_csma_ca_tx_failed_hook(uint8_t * p_frame, nrf_802154_tx_error_t
445445
if (mp_data == p_frame)
446446
{
447447
mp_data = NULL;
448-
nrf_802154_sl_atomic_store_u8(&m_state, CSMA_CA_STATE_IDLE);
448+
nrf_802154_sl_atomic_store_u8((uint8_t *)&m_state, CSMA_CA_STATE_IDLE);
449449
}
450450
break;
451451

@@ -486,7 +486,7 @@ bool nrf_802154_csma_ca_tx_started_hook(uint8_t * p_frame)
486486
if (mp_data == p_frame)
487487
{
488488
mp_data = NULL;
489-
nrf_802154_sl_atomic_store_u8(&m_state, CSMA_CA_STATE_IDLE);
489+
nrf_802154_sl_atomic_store_u8((uint8_t *)&m_state, CSMA_CA_STATE_IDLE);
490490
}
491491

492492
nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_LOW);

nrf_802154/driver/src/mac_features/nrf_802154_ifs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ static nrf_802154_sl_timer_t m_timer; ///< Interframe space t
100100
*/
101101
static bool ifs_state_set(ifs_state_t expected_state, ifs_state_t new_state)
102102
{
103-
return nrf_802154_sl_atomic_cas_u8(&m_state, &expected_state, new_state);
103+
return nrf_802154_sl_atomic_cas_u8((uint8_t *)&m_state, (uint8_t *)&expected_state, new_state);
104104
}
105105

106106
static bool ifs_state_is(ifs_state_t expected_state_mask)

0 commit comments

Comments
 (0)