lib/sw_services/xilpm/examples/gic_setup.c
s32 GicSetupInterruptSystem(u32 IntId,
		void *PeriphInstPtr, Xil_ExceptionHandler Handler)
{
	s32 Status;

	Status = GicInit();
	if(XST_SUCCESS != Status)
		return Status;

	Status = XScuGic_Connect(&GicInst, IntId, Handler, PeriphInstPtr);
	if(XST_SUCCESS != Status)
		return Status;

	XScuGic_Enable(&GicInst, IntId);

	Xil_ExceptionEnable();

	return XST_SUCCESS;
}
/**
 * GicSetupInterruptSystem() - configure the system to receive peripheral interrupt
 * @IntId	interrupt id of the timer
 * @PeriphInstPtr	peripheral
 * @Handler	interrupt Handler
 *
 * Does everything that is needed for enabling interrupts (gic setup, Handler connecting,
 * interrupt enabling on processor and gic level)
 *
 * @return:	status of operation success (XST_* from xstatus.h)
 */
configure the system to receive peripheral interrupt
@IntId       interrupt id of the timer
@PeriphInstPtr       peripheral
@Handler     interrupt Handler

Does everything that is needed for enabling interrupts (gic setup, Handler connecting,
interrupt enabling on processor and gic level)

@return:     status of operation success (XST_* from xstatus.h)
configure the system to receive peripheral interrupt @IntId interrupt id of the timer @PeriphInstPtr peripheral @Handler interrupt Handler Does everything that is needed for enabling interrupts ( gic setup Handler connecting interrupt enabling on processor and gic level ) @return : status of operation success ( XST_ * from xstatus . h )
s32 GicSetupInterruptSystem(u32 IntId,
		void *PeriphInstPtr, Xil_ExceptionHandler Handler)
{
	s32 Status;
	Status = GicInit();
	if(XST_SUCCESS != Status)
		return Status;
	Status = XScuGic_Connect(&GicInst, IntId, Handler, PeriphInstPtr);
	if(XST_SUCCESS != Status)
		return Status;
	XScuGic_Enable(&GicInst, IntId);
	Xil_ExceptionEnable();
	return XST_SUCCESS;
}
s32 GicSetupInterruptSystem ( u32 IntId , void * PeriphInstPtr , Xil_ExceptionHandler Handler ) { s32 Status ; Status = GicInit ( ) ; if ( XST_SUCCESS != Status ) return Status ; Status = XScuGic_Connect ( & GicInst , IntId , Handler , PeriphInstPtr ) ; if ( XST_SUCCESS != Status ) return Status ; XScuGic_Enable ( & GicInst , IntId ) ; Xil_ExceptionEnable ( ) ; return XST_SUCCESS ; }
GicSetupInterruptSystem() - configure the system to receive peripheral interrupt
 @IntId       interrupt id of the timer
 @PeriphInstPtr       peripheral
 @Handler     interrupt Handler
GicSetupInterruptSystem () - configure the system to receive peripheral interrupt @IntId interrupt id of the timer @PeriphInstPtr peripheral @Handler interrupt Handler