XilinxProcessorIPLib/drivers/gpio/src/xgpio_intr.c
void XGpio_InterruptEnable(XGpio *InstancePtr, u32 Mask)
{
	u32 Register;

	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertVoid(InstancePtr->InterruptPresent == TRUE);

	/*
	 * Read the interrupt enable register and only enable the specified
	 * interrupts without disabling or enabling any others.
	 */

	Register = XGpio_ReadReg(InstancePtr->BaseAddress, XGPIO_IER_OFFSET);
	XGpio_WriteReg(InstancePtr->BaseAddress, XGPIO_IER_OFFSET,
			Register | Mask);

}
/****************************************************************************/
/**
* Enable interrupts. The global interrupt must also be enabled by calling
* XGpio_InterruptGlobalEnable() for interrupts to occur. This function will
* assert if the hardware device has not been built with interrupt capabilities.
*
* @param	InstancePtr is the GPIO instance to operate on.
* @param	Mask is the mask to enable. Bit positions of 1 are enabled.
*		This mask is formed by OR'ing bits from XGPIO_IR* bits which
*		are contained in xgpio_l.h.
*
* @return	None.
*
* @note		None.
*
*****************************************************************************/
Enable interrupts. The global interrupt must also be enabled by calling
XGpio_InterruptGlobalEnable() for interrupts to occur. This function will
assert if the hardware device has not been built with interrupt capabilities.
Enable interrupts . The global interrupt must also be enabled by calling XGpio_InterruptGlobalEnable () for interrupts to occur . This function will assert if the hardware device has not been built with interrupt capabilities .
void XGpio_InterruptEnable(XGpio *InstancePtr, u32 Mask)
{
	u32 Register;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertVoid(InstancePtr->InterruptPresent == TRUE);
	Register = XGpio_ReadReg(InstancePtr->BaseAddress, XGPIO_IER_OFFSET);
	XGpio_WriteReg(InstancePtr->BaseAddress, XGPIO_IER_OFFSET,
			Register | Mask);
}
void XGpio_InterruptEnable ( XGpio * InstancePtr , u32 Mask ) { u32 Register ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; Xil_AssertVoid ( InstancePtr -> InterruptPresent == TRUE ) ; Register = XGpio_ReadReg ( InstancePtr -> BaseAddress , XGPIO_IER_OFFSET ) ; XGpio_WriteReg ( InstancePtr -> BaseAddress , XGPIO_IER_OFFSET , Register | Mask ) ; }
Enable interrupts.
Enable interrupts .
/*
	 * Read the interrupt enable register and only enable the specified
	 * interrupts without disabling or enabling any others.
	 */