Counting semaphore
A semaphore holding an integer rather than a bit, so it can count free resources or events that haven't been handled yet.
Edsger Dijkstra described semaphores with their P and V operations in 1965, and the counting kind is really the original — the binary one is the special case capped at one. Each take decrements the count and blocks at zero; each give increments it, up to a ceiling. In FreeRTOS you get one from xSemaphoreCreateCounting(max, initial).
Firmware uses it for two jobs: tracking a pool of, say, four DMA buffers, or letting an ISR give once per received packet so no event is lost when the task falls behind. Unlike a mutex it has no owner, and therefore no protection against priority inversion. Use it as a lock and you're on your own.