Home
last modified time | relevance | path

Searched refs:permits (Results 1 – 2 of 2) sorted by relevance

/hal_rpi_pico-latest/src/common/pico_sync/
Dsem.c12 sem->permits = initial_permits; in sem_init()
19 return *(volatile typeof(sem->permits) *) &sem->permits; in __time_critical_func()
21 static_assert(sizeof(sem->permits) == 2, ""); in __time_critical_func()
22 return *(volatile int16_t *) &sem->permits; in __time_critical_func()
29 if (sem->permits > 0) { in __time_critical_func()
30 sem->permits--; in __time_critical_func()
49 if (sem->permits > 0) { in __time_critical_func()
50 sem->permits--; in __time_critical_func()
62 if (sem->permits > 0) { in __time_critical_func()
63 sem->permits--; in __time_critical_func()
[all …]
/hal_rpi_pico-latest/src/common/pico_sync/include/pico/
Dsem.h33 int16_t permits; member
74 void sem_reset(semaphore_t *sem, int16_t permits);