XilinxProcessorIPLib/drivers/dual_splitter/src/xdualsplitter_intr.c
void XDualSplitter_IntrHandler(void *InstancePtr)
{
	u32 PendingIntr;
	u32 ErrorStatus;

	XDualSplitter *XDualSpltrPtr = (XDualSplitter *)((void *)InstancePtr);

	/* Verify arguments. */
	Xil_AssertVoid(XDualSpltrPtr != NULL);
	Xil_AssertVoid(XDualSpltrPtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertVoid(XDualSpltrPtr->Config.HasIntrReq == 0x1);

	/* Get pending interrupts */
	PendingIntr = XDualSplitter_IntrGetPending(XDualSpltrPtr);

	/* Interrupt has happened due to error(s) */
	if (PendingIntr & XDUSP_ALL_ERR_MASK) {
		ErrorStatus = PendingIntr & (u32)XDUSP_ALL_ERR_MASK;
		XDualSpltrPtr->ErrCallback(XDualSpltrPtr->ErrRef, ErrorStatus);
	}

	/* Clear pending interrupt(s) */
	XDualSplitter_IntrClear(XDualSpltrPtr, PendingIntr);
}
/*****************************************************************************/
/**
*
* This function is the interrupt handler for the Dual Splitter core.
*
* This handler reads the pending interrupt from the GENR_ERROR register,
* determines the source of the interrupts and calls the respective
* callbacks for the interrupts that are enabled in IRQ_ENABLE register,
* and finally clears the interrupts.
*
* The application is responsible for connecting this function to the interrupt
* system. Application beyond this core is also responsible for providing
* callbacks to handle interrupts and installing the callbacks using
* XDualSplitter_SetCallBack() during initialization phase.
*
* @param	InstancePtr is a pointer to the XDualSplitter core instance.
*
* @return	None.
*
* @note		Interrupt should be enabled to execute interrupt handler.
*
******************************************************************************/
This function is the interrupt handler for the Dual Splitter core.
This handler reads the pending interrupt from the GENR_ERROR register,
determines the source of the interrupts and calls the respective
callbacks for the interrupts that are enabled in IRQ_ENABLE register,
and finally clears the interrupts.

The application is responsible for connecting this function to the interrupt
system. Application beyond this core is also responsible for providing
callbacks to handle interrupts and installing the callbacks using
XDualSplitter_SetCallBack() during initialization phase.
This function is the interrupt handler for the Dual Splitter core . This handler reads the pending interrupt from the GENR_ERROR register determines the source of the interrupts and calls the respective callbacks for the interrupts that are enabled in IRQ_ENABLE register and finally clears the interrupts . The application is responsible for connecting this function to the interrupt system . Application beyond this core is also responsible for providing callbacks to handle interrupts and installing the callbacks using XDualSplitter_SetCallBack () during initialization phase .
void XDualSplitter_IntrHandler(void *InstancePtr)
{
	u32 PendingIntr;
	u32 ErrorStatus;
	XDualSplitter *XDualSpltrPtr = (XDualSplitter *)((void *)InstancePtr);
	Xil_AssertVoid(XDualSpltrPtr != NULL);
	Xil_AssertVoid(XDualSpltrPtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertVoid(XDualSpltrPtr->Config.HasIntrReq == 0x1);
	PendingIntr = XDualSplitter_IntrGetPending(XDualSpltrPtr);
	if (PendingIntr & XDUSP_ALL_ERR_MASK) {
		ErrorStatus = PendingIntr & (u32)XDUSP_ALL_ERR_MASK;
		XDualSpltrPtr->ErrCallback(XDualSpltrPtr->ErrRef, ErrorStatus);
	}
	XDualSplitter_IntrClear(XDualSpltrPtr, PendingIntr);
}
void XDualSplitter_IntrHandler ( void * InstancePtr ) { u32 PendingIntr ; u32 ErrorStatus ; XDualSplitter * XDualSpltrPtr = ( XDualSplitter * ) ( ( void * ) InstancePtr ) ; Xil_AssertVoid ( XDualSpltrPtr != NULL ) ; Xil_AssertVoid ( XDualSpltrPtr -> IsReady == XIL_COMPONENT_IS_READY ) ; Xil_AssertVoid ( XDualSpltrPtr -> Config . HasIntrReq == 0x1 ) ; PendingIntr = XDualSplitter_IntrGetPending ( XDualSpltrPtr ) ; if ( PendingIntr & XDUSP_ALL_ERR_MASK ) { ErrorStatus = PendingIntr & ( u32 ) XDUSP_ALL_ERR_MASK ; XDualSpltrPtr -> ErrCallback ( XDualSpltrPtr -> ErrRef , ErrorStatus ) ; } XDualSplitter_IntrClear ( XDualSpltrPtr , PendingIntr ) ; }
This function is the interrupt handler for the Dual Splitter core.
This function is the interrupt handler for the Dual Splitter core .
/* Verify arguments. */ /* Get pending interrupts */ /* Interrupt has happened due to error(s) */ /* Clear pending interrupt(s) */