Home
last modified time | relevance | path

Searched refs:claimed (Results 1 – 3 of 3) sorted by relevance

/hal_rpi_pico-3.4.0/src/rp2_common/hardware_sync/
Dsync.c12 static uint32_t claimed; variable
41 hw_claim_or_assert((uint8_t *) &claimed, lock_num, "Spinlock %d is already claimed"); in spin_lock_claim()
53 hw_claim_clear((uint8_t *) &claimed, lock_num); in spin_lock_unclaim()
57 …return hw_claim_unused_from_range((uint8_t*)&claimed, required, PICO_SPINLOCK_ID_CLAIM_FREE_FIRST,… in spin_lock_claim_unused()
62 return hw_is_claimed((uint8_t *) &claimed, lock_num); in spin_lock_is_claimed()
/hal_rpi_pico-3.4.0/src/rp2_common/hardware_timer/
Dtimer.c19 static uint8_t claimed; variable
23 hw_claim_or_assert(&claimed, alarm_num, "Hardware alarm %d already claimed"); in hardware_alarm_claim()
28 hw_claim_clear(&claimed, alarm_num); in hardware_alarm_unclaim()
33 return hw_is_claimed(&claimed, alarm_num); in hardware_alarm_is_claimed()
37 return hw_claim_unused_from_range(&claimed, required, 0, NUM_TIMERS - 1, "No timers available"); in hardware_alarm_claim_unused()
/hal_rpi_pico-3.4.0/src/rp2_common/hardware_pio/
Dpio.c21 static uint8_t claimed; variable
27 … hw_claim_or_assert(&claimed, NUM_PIO_STATE_MACHINES + sm, "PIO 1 SM (%d - 4) already claimed"); in pio_sm_claim()
29 hw_claim_or_assert(&claimed, sm, "PIO 0 SM %d already claimed"); in pio_sm_claim()
42 hw_claim_clear(&claimed, which * NUM_PIO_STATE_MACHINES + sm); in pio_sm_unclaim()
49 int index = hw_claim_unused_from_range((uint8_t*)&claimed, required, base, in pio_claim_unused_sm()
57 return hw_is_claimed(&claimed, which * NUM_PIO_STATE_MACHINES + sm); in pio_sm_is_claimed()