lib/sw_apps/imgsel/src/xis_gpio.c
u8 GetGpioStatus(void)
{
	u8 DataRead;

	/* Set the direction for the specified pin to be input. */
	XGpioPs_SetDirectionPin(&Gpio, FW_UPDATE_BUTTON, 0x0U);

	/* Read the state of the data so that it can be  verified. */
	DataRead = XGpioPs_ReadPin(&Gpio, FW_UPDATE_BUTTON);

	return DataRead;
}
/******************************************************************************/
/**
*
* This function read data from GPIO driver/device with the GPIO
* configured as INPUT.
*
* @param	None
*
* @return	DataRead  where the data read from GPIO Input is returned
*
*
******************************************************************************/
This function read data from GPIO driver/device with the GPIO
configured as INPUT.
This function read data from GPIO driver / device with the GPIO configured as INPUT .
u8 GetGpioStatus(void)
{
	u8 DataRead;
	XGpioPs_SetDirectionPin(&Gpio, FW_UPDATE_BUTTON, 0x0U);
	DataRead = XGpioPs_ReadPin(&Gpio, FW_UPDATE_BUTTON);
	return DataRead;
}
u8 GetGpioStatus ( void ) { u8 DataRead ; XGpioPs_SetDirectionPin ( & Gpio , FW_UPDATE_BUTTON , 0x0U ) ; DataRead = XGpioPs_ReadPin ( & Gpio , FW_UPDATE_BUTTON ) ; return DataRead ; }
This function read data from GPIO driver/device with the GPIO
configured as INPUT.
This function read data from GPIO driver / device with the GPIO configured as INPUT .
/* Set the direction for the specified pin to be input. */ /* Read the state of the data so that it can be  verified. */