XilinxProcessorIPLib/drivers/sysmon/src/xsysmon.c
int XSysMon_CfgInitialize(XSysMon *InstancePtr, XSysMon_Config *ConfigPtr,
			  UINTPTR EffectiveAddr)
{
	/*
	 * Assert the input arguments.
	 */
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(ConfigPtr != NULL);

	/*
	 * Set the values read from the device config and the base address.
	 */
	InstancePtr->Config.DeviceId = ConfigPtr->DeviceId;
	InstancePtr->Config.BaseAddress = EffectiveAddr;
	InstancePtr->Config.IncludeInterrupt = ConfigPtr->IncludeInterrupt;

	/* Store the default Waitcycles value in Mask */
	InstancePtr->Mask = XSM_CONVST_WAITCYCLES_DEFAULT <<
					XSM_CONVST_WAITCYCLES_SHIFT;

	/*
	 * Indicate the instance is now ready to use, initialized without error
	 */
	InstancePtr->IsReady = XIL_COMPONENT_IS_READY;

	/*
	 * Reset the device such that it is in a known state.
	 */
	XSysMon_Reset(InstancePtr);

	return XST_SUCCESS;
}
/*****************************************************************************/
/**
*
* This function initializes a specific XSysMon device/instance. This function
* must be called prior to using the System Monitor/ADC device.
*
* @param	InstancePtr is a pointer to the XSysMon instance.
* @param	ConfigPtr points to the XSysMon device configuration structure.
* @param	EffectiveAddr is the device base address in the virtual memory
*		address space. If the address translation is not used then the
*		physical address is passed.
*		Unexpected errors may occur if the address mapping is changed
*		after this function is invoked.
*
* @return
*		- XST_SUCCESS if successful.
*
* @note		The user needs to first call the XSysMon_LookupConfig() API
*		which returns the Configuration structure pointer which is
*		passed as a parameter to the XSysMon_CfgInitialize() API.
*
******************************************************************************/
This function initializes a specific XSysMon device/instance. This function
must be called prior to using the System Monitor/ADC device.
This function initializes a specific XSysMon device / instance . This function must be called prior to using the System Monitor / ADC device .
int XSysMon_CfgInitialize(XSysMon *InstancePtr, XSysMon_Config *ConfigPtr,
			  UINTPTR EffectiveAddr)
{
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(ConfigPtr != NULL);
	InstancePtr->Config.DeviceId = ConfigPtr->DeviceId;
	InstancePtr->Config.BaseAddress = EffectiveAddr;
	InstancePtr->Config.IncludeInterrupt = ConfigPtr->IncludeInterrupt;
	InstancePtr->Mask = XSM_CONVST_WAITCYCLES_DEFAULT <<
					XSM_CONVST_WAITCYCLES_SHIFT;
	InstancePtr->IsReady = XIL_COMPONENT_IS_READY;
	XSysMon_Reset(InstancePtr);
	return XST_SUCCESS;
}
int XSysMon_CfgInitialize ( XSysMon * InstancePtr , XSysMon_Config * ConfigPtr , UINTPTR EffectiveAddr ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( ConfigPtr != NULL ) ; InstancePtr -> Config . DeviceId = ConfigPtr -> DeviceId ; InstancePtr -> Config . BaseAddress = EffectiveAddr ; InstancePtr -> Config . IncludeInterrupt = ConfigPtr -> IncludeInterrupt ; InstancePtr -> Mask = XSM_CONVST_WAITCYCLES_DEFAULT << XSM_CONVST_WAITCYCLES_SHIFT ; InstancePtr -> IsReady = XIL_COMPONENT_IS_READY ; XSysMon_Reset ( InstancePtr ) ; return XST_SUCCESS ; }
This function initializes a specific XSysMon device/instance.
This function initializes a specific XSysMon device / instance .
/*
	 * Assert the input arguments.
	 */ /*
	 * Set the values read from the device config and the base address.
	 */ /* Store the default Waitcycles value in Mask */ /*
	 * Indicate the instance is now ready to use, initialized without error
	 */ /*
	 * Reset the device such that it is in a known state.
	 */