/* Unlock a given peripheral's control registers. 
Unlocks a given peripheral's control registers, allowing write access to the peripheral so that changes can be made to the module's configuration. */
__no_inline enum status_code system_peripheral_unlock(const uint32_t peripheral_id, const uint32_t key)
/* Unlock a given peripheral's control registers. 
Unlocks a given peripheral's control registers, allowing write access to the peripheral so that changes can be made to the module's configuration. */
__no_inline enum status_code system_peripheral_unlock(const uint32_t peripheral_id, const uint32_t key)
{
	if (~peripheral_id != key) {
		Assert(false);
		return STATUS_ERR_INVALID_ARG;
	}
	PAC->WRCTRL.reg = peripheral_id | PAC_WRCTRL_KEY(PAC_WRCTRL_KEY_CLR_Val);
	return STATUS_OK;
}