XilinxProcessorIPLib/drivers/mipicsiss/examples/xmipi_vck_example/mipi_cfg.c
int SetupInterrupts(void) {
	int Status;

	XScuGic *IntcInstPtr = &Intc;


	/*
	 * Start the interrupt controller such that interrupts are recognized
	 * and handled by the processor
	 */

	Status = XScuGic_Connect(IntcInstPtr, XPAR_INTC_0_V_SENSOR_IIC_0_VEC_ID,
				(XInterruptHandler) XIic_InterruptHandler,
				(void *) &IicSensor);

	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}

	Status = XScuGic_Connect(IntcInstPtr, XPAR_INTC_0_V_FRMBUF_WR_0_VEC_ID,
				(XInterruptHandler) XVFrmbufWr_InterruptHandler,
				(void *) &frmbufwr);

	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}

	Status = XScuGic_Connect(IntcInstPtr, XPAR_INTC_0_V_FRMBUF_RD_0_VEC_ID,
				(XInterruptHandler) XVFrmbufRd_InterruptHandler,
				(void *) &frmbufrd);

	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}



	/* Enable IO expander and sensor IIC interrupts */
	XScuGic_Enable(IntcInstPtr, XPAR_INTC_0_V_SENSOR_IIC_0_VEC_ID);
	XScuGic_Enable(IntcInstPtr, XPAR_INTC_0_V_FRMBUF_WR_0_VEC_ID);
	XScuGic_Enable(IntcInstPtr, XPAR_INTC_0_V_FRMBUF_RD_0_VEC_ID);


	return (XST_SUCCESS);
}
/*****************************************************************************/
/**
 *
 * This function setups the interrupt system.
 *
 * @return	XST_SUCCESS if interrupt setup was successful else error code
 *
 * @note	None.
 *
 *****************************************************************************/
This function setups the interrupt system.
@return      XST_SUCCESS if interrupt setup was successful else error code

@note        None.
This function setups the interrupt system . @return XST_SUCCESS if interrupt setup was successful else error code @note None .
int SetupInterrupts(void) {
	int Status;
	XScuGic *IntcInstPtr = &Intc;
	Status = XScuGic_Connect(IntcInstPtr, XPAR_INTC_0_V_SENSOR_IIC_0_VEC_ID,
				(XInterruptHandler) XIic_InterruptHandler,
				(void *) &IicSensor);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}
	Status = XScuGic_Connect(IntcInstPtr, XPAR_INTC_0_V_FRMBUF_WR_0_VEC_ID,
				(XInterruptHandler) XVFrmbufWr_InterruptHandler,
				(void *) &frmbufwr);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}
	Status = XScuGic_Connect(IntcInstPtr, XPAR_INTC_0_V_FRMBUF_RD_0_VEC_ID,
				(XInterruptHandler) XVFrmbufRd_InterruptHandler,
				(void *) &frmbufrd);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}
	XScuGic_Enable(IntcInstPtr, XPAR_INTC_0_V_SENSOR_IIC_0_VEC_ID);
	XScuGic_Enable(IntcInstPtr, XPAR_INTC_0_V_FRMBUF_WR_0_VEC_ID);
	XScuGic_Enable(IntcInstPtr, XPAR_INTC_0_V_FRMBUF_RD_0_VEC_ID);
	return (XST_SUCCESS);
}
int SetupInterrupts ( void ) { int Status ; XScuGic * IntcInstPtr = & Intc ; Status = XScuGic_Connect ( IntcInstPtr , XPAR_INTC_0_V_SENSOR_IIC_0_VEC_ID , ( XInterruptHandler ) XIic_InterruptHandler , ( void * ) & IicSensor ) ; if ( Status != XST_SUCCESS ) { return XST_FAILURE ; } Status = XScuGic_Connect ( IntcInstPtr , XPAR_INTC_0_V_FRMBUF_WR_0_VEC_ID , ( XInterruptHandler ) XVFrmbufWr_InterruptHandler , ( void * ) & frmbufwr ) ; if ( Status != XST_SUCCESS ) { return XST_FAILURE ; } Status = XScuGic_Connect ( IntcInstPtr , XPAR_INTC_0_V_FRMBUF_RD_0_VEC_ID , ( XInterruptHandler ) XVFrmbufRd_InterruptHandler , ( void * ) & frmbufrd ) ; if ( Status != XST_SUCCESS ) { return XST_FAILURE ; } XScuGic_Enable ( IntcInstPtr , XPAR_INTC_0_V_SENSOR_IIC_0_VEC_ID ) ; XScuGic_Enable ( IntcInstPtr , XPAR_INTC_0_V_FRMBUF_WR_0_VEC_ID ) ; XScuGic_Enable ( IntcInstPtr , XPAR_INTC_0_V_FRMBUF_RD_0_VEC_ID ) ; return ( XST_SUCCESS ) ; }
This function setups the interrupt system.
This function setups the interrupt system .
/*
	 * Start the interrupt controller such that interrupts are recognized
	 * and handled by the processor
	 */ /* Enable IO expander and sensor IIC interrupts */