bootrom_try_acquire_lock() function
Try to acquire a bootrom lock If PICO_BOOTROM_LOCKING_ENABLED is false, this method returns true immediately
Arguments
lock_num
the lock numbers - BOOTROM_LOCK_SHA_256, BOOTROM_LOCK_FLASH_OP or BOOTROM_LOCK_OTP
Return value
true if the lock was acquired