ext/hal/nordic/drivers/nrf_drv_radio802154.c
// Lock mutex to prevent run conditions.
Lock mutex to prevent run conditions.
Lock mutex to prevent run conditions .
static bool mutex_lock(void)
{
    do
    {
        volatile uint8_t mutex_value = __LDREXB(&m_mutex);
        if (mutex_value)
        {
            return false;
        }
    }
    while (__STREXB(1, &m_mutex));
    __DMB();
    assert(m_state == RADIO_STATE_WAITING_RX_FRAME);
    return true;
}
static bool mutex_lock ( void ) { do { volatile uint8_t mutex_value = __LDREXB ( & m_mutex ) ; if ( mutex_value ) { return false ; } } while ( __STREXB ( 1 , & m_mutex ) ) ; __DMB ( ) ; assert ( m_state == RADIO_STATE_WAITING_RX_FRAME ) ; return true ; }
Lock mutex to prevent run conditions.
Lock mutex to prevent run conditions .