hw_claim_lock() function
Acquire the runtime mutual exclusion lock provided by the `hardware_claim` library This 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.
Syntax
uint32_t hw_claim_lock(void);
Return value
a token to pass to hw_claim_unlock()
Notes
hw_claim_lock() uses a spin lock internally, so disables interrupts on the calling core, and will deadlock if the calling core already owns the lock.