@@ -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 );
0 commit comments