lib/sw_apps/imgsel/src/xis_gpio.c
int GpioInit(void)
{
	int Status = XST_FAILURE;
	XGpioPs_Config *ConfigPtr;

	/* Initialize the GPIO driver. */
	ConfigPtr = XGpioPs_LookupConfig(GPIO_DEVICE_ID);
	if (ConfigPtr == NULL) {
		Status = XIS_GPIO_LKP_CONFIG_ERROR;
		goto END;
	}

	Status = XGpioPs_CfgInitialize(&Gpio, ConfigPtr,
					ConfigPtr->BaseAddr);
	if (Status != XST_SUCCESS) {
		Status = XIS_GPIO_CONFIG_ERROR;
		goto END;
	}

END:
    return Status;
}
/************************** Function Definitions *****************************/
/*****************************************************************************/
/**
 * This function is used to initialize the gpio controller and driver
 *
 * @param	None
 *
 * @return	XST_SUCCESS if pass, otherwise XST_FAILURE.
 *
 *****************************************************************************/
Function Definitions
This function is used to initialize the gpio controller and driver

@param       None


Function Definitions This function is used to initialize the gpio controller and driver @param None
int GpioInit(void)
{
	int Status = XST_FAILURE;
	XGpioPs_Config *ConfigPtr;
	ConfigPtr = XGpioPs_LookupConfig(GPIO_DEVICE_ID);
	if (ConfigPtr == NULL) {
		Status = XIS_GPIO_LKP_CONFIG_ERROR;
		goto END;
	}
	Status = XGpioPs_CfgInitialize(&Gpio, ConfigPtr,
					ConfigPtr->BaseAddr);
	if (Status != XST_SUCCESS) {
		Status = XIS_GPIO_CONFIG_ERROR;
		goto END;
	}
END:
    return Status;
}
int GpioInit ( void ) { int Status = XST_FAILURE ; XGpioPs_Config * ConfigPtr ; ConfigPtr = XGpioPs_LookupConfig ( GPIO_DEVICE_ID ) ; if ( ConfigPtr == NULL ) { Status = XIS_GPIO_LKP_CONFIG_ERROR ; goto END ; } Status = XGpioPs_CfgInitialize ( & Gpio , ConfigPtr , ConfigPtr -> BaseAddr ) ; if ( Status != XST_SUCCESS ) { Status = XIS_GPIO_CONFIG_ERROR ; goto END ; } END : return Status ; }
Function Definitions
 This function is used to initialize the gpio controller and driver
Function Definitions This function is used to initialize the gpio controller and driver
/* Initialize the GPIO driver. */