hw_claim_or_assert() function
Atomically claim a resource, panicking if it is already in use The resource ownership is indicated by the bit_index bit in an array of bits.
Arguments
bits
pointer to an array of bits (8 bits per byte)
bit_index
resource to claim (bit index into array of bits)
message
string to display if the bit cannot be claimed; note this may have a single printf format "%d" for the bit