
Go to the source code of this file.
Functions | |
| void | hw_claim_or_assert (uint8_t *bits, uint bit_index, const char *message) |
| Atomically claim a resource, panicking if it is already in useThe resource ownership is indicated by the bit_index bit in an array of bits. More... | |
| int | hw_claim_unused_from_range (uint8_t *bits, bool required, uint bit_lsb, uint bit_msb, const char *message) |
| Atomically claim one resource out of a range of resources, optionally asserting if none are free. More... | |
| bool | hw_is_claimed (const uint8_t *bits, uint bit_index) |
| Determine if a resource is claimed at the time of the callThe resource ownership is indicated by the bit_index bit in an array of bits. More... | |
| void | hw_claim_clear (uint8_t *bits, uint bit_index) |
| Atomically unclaim a resourceThe resource ownership is indicated by the bit_index bit in an array of bits. More... | |
| uint32_t | hw_claim_lock (void) |
Acquire the runtime mutual exclusion lock provided by the hardware_claim libraryThis method is called automatically by the other hw_claim_ methods, however it is provided as a convenience to code that might want to protect other hardware initialization code from concurrent use. More... | |
| void | hw_claim_unlock (uint32_t token) |
Release the runtime mutual exclusion lock provided by the hardware_claim library. More... | |