XilinxProcessorIPLib/drivers/gpio/src/xgpio_intr.c
void XGpio_InterruptGlobalEnable(XGpio *InstancePtr)
{
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertVoid(InstancePtr->InterruptPresent == TRUE);

	XGpio_WriteReg(InstancePtr->BaseAddress, XGPIO_GIE_OFFSET,
			XGPIO_GIE_GINTR_ENABLE_MASK);
}
/****************************************************************************/
/**
* Enable the interrupt output signal. Interrupts enabled through
* XGpio_InterruptEnable() will not be passed through until the global enable
* bit is set by this function. This function is designed to allow all
* interrupts (both channels) to be enabled easily for exiting a critical
* section. This function will assert if the hardware device has not been
* built with interrupt capabilities.
*
* @param	InstancePtr is the GPIO instance to operate on.
*
* @return	None.
*
* @note		None.
*
*****************************************************************************/
Enable the interrupt output signal. Interrupts enabled through
XGpio_InterruptEnable() will not be passed through until the global enable
bit is set by this function. This function is designed to allow all
interrupts (both channels) to be enabled easily for exiting a critical
section. This function will assert if the hardware device has not been
built with interrupt capabilities.
Enable the interrupt output signal . Interrupts enabled through XGpio_InterruptEnable () will not be passed through until the global enable bit is set by this function . This function is designed to allow all interrupts ( both channels ) to be enabled easily for exiting a critical section . This function will assert if the hardware device has not been built with interrupt capabilities .
void XGpio_InterruptGlobalEnable(XGpio *InstancePtr)
{
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertVoid(InstancePtr->InterruptPresent == TRUE);
	XGpio_WriteReg(InstancePtr->BaseAddress, XGPIO_GIE_OFFSET,
			XGPIO_GIE_GINTR_ENABLE_MASK);
}
void XGpio_InterruptGlobalEnable ( XGpio * InstancePtr ) { Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; Xil_AssertVoid ( InstancePtr -> InterruptPresent == TRUE ) ; XGpio_WriteReg ( InstancePtr -> BaseAddress , XGPIO_GIE_OFFSET , XGPIO_GIE_GINTR_ENABLE_MASK ) ; }
Enable the interrupt output signal.
Enable the interrupt output signal .