XilinxProcessorIPLib/drivers/gpio/src/xgpio.c
int XGpio_CfgInitialize(XGpio * InstancePtr, XGpio_Config * Config,
			UINTPTR EffectiveAddr)
{
	/* Assert arguments */
	Xil_AssertNonvoid(InstancePtr != NULL);

	/* Set some default values. */
	InstancePtr->BaseAddress = EffectiveAddr;

	InstancePtr->InterruptPresent = Config->InterruptPresent;
	InstancePtr->IsDual = Config->IsDual;

	/*
	 * Indicate the instance is now ready to use, initialized without error
	 */
	InstancePtr->IsReady = XIL_COMPONENT_IS_READY;
	return (XST_SUCCESS);
}
/****************************************************************************/
/**
* Initialize the XGpio instance provided by the caller based on the
* given configuration data.
*
* Nothing is done except to initialize the InstancePtr.
*
* @param	InstancePtr is a pointer to an XGpio instance. The memory the
*		pointer references must be pre-allocated by the caller. Further
*		calls to manipulate the driver through the XGpio API must be
*		made with this pointer.
* @param	Config is a reference to a structure containing information
*		about a specific GPIO device. This function initializes an
*		InstancePtr object for a specific device specified by the
*		contents of Config. This function can initialize multiple
*		instance objects with the use of multiple calls giving different
*		Config information on each call.
* @param 	EffectiveAddr is the device base address in the virtual memory
*		address space. The caller is responsible for keeping the address
*		mapping from EffectiveAddr to the device physical base address
*		unchanged once this function is invoked. Unexpected errors may
*		occur if the address mapping changes after this function is
*		called. If address translation is not used, use
*		Config->BaseAddress for this parameters, passing the physical
*		address instead.
*
* @return
* 		- XST_SUCCESS if the initialization is successful.
*
* @note		None.
*
*****************************************************************************/
Initialize the XGpio instance provided by the caller based on the
given configuration data.

Nothing is done except to initialize the InstancePtr.
Initialize the XGpio instance provided by the caller based on the given configuration data . Nothing is done except to initialize the InstancePtr .
int XGpio_CfgInitialize(XGpio * InstancePtr, XGpio_Config * Config,
			UINTPTR EffectiveAddr)
{
	Xil_AssertNonvoid(InstancePtr != NULL);
	InstancePtr->BaseAddress = EffectiveAddr;
	InstancePtr->InterruptPresent = Config->InterruptPresent;
	InstancePtr->IsDual = Config->IsDual;
	InstancePtr->IsReady = XIL_COMPONENT_IS_READY;
	return (XST_SUCCESS);
}
int XGpio_CfgInitialize ( XGpio * InstancePtr , XGpio_Config * Config , UINTPTR EffectiveAddr ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; InstancePtr -> BaseAddress = EffectiveAddr ; InstancePtr -> InterruptPresent = Config -> InterruptPresent ; InstancePtr -> IsDual = Config -> IsDual ; InstancePtr -> IsReady = XIL_COMPONENT_IS_READY ; return ( XST_SUCCESS ) ; }
Initialize the XGpio instance provided by the caller based on the
given configuration data.
Initialize the XGpio instance provided by the caller based on the given configuration data .
/* Assert arguments */ /* Set some default values. */ /*
	 * Indicate the instance is now ready to use, initialized without error
	 */