XilinxProcessorIPLib/drivers/intc/examples/xintc_tapp_example.c
int IntcSelfTestExample(u16 DeviceId)
{
	int Status;

	/*
	 * Initialize the interrupt controller driver so that it is ready to use.
	 */
	Status = XIntc_Initialize(&InterruptController, DeviceId);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}


	/*
	 * Perform a self-test to ensure that the hardware was built correctly.
	 */
	Status = XIntc_SelfTest(&InterruptController);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}

	return XST_SUCCESS;

}
/*****************************************************************************/
/**
*
* This function runs a self-test on the driver/device. This is a destructive
* test. This function is an example of how to use the interrupt controller
* driver component (XIntc) and the hardware device.  This function is designed
* to work without any hardware devices to cause interrupts.  It may not return
* if the interrupt controller is not properly connected to the processor in
* either software or hardware.
*
* This function relies on the fact that the interrupt controller hardware
* has come out of the reset state such that it will allow interrupts to be
* simulated by the software.
*
* @param	DeviceId is device ID of the Interrupt Controller Device,
*		typically XPAR_<INTC_instance>_DEVICE_ID value from
*		xparameters.h.
*
* @return	XST_SUCCESS to indicate success, otherwise XST_FAILURE.
*
* @note		None.
*
******************************************************************************/
This function runs a self-test on the driver/device. This is a destructive
test. This function is an example of how to use the interrupt controller
driver component (XIntc) and the hardware device.  This function is designed
to work without any hardware devices to cause interrupts.  It may not return
if the interrupt controller is not properly connected to the processor in
either software or hardware.

This function relies on the fact that the interrupt controller hardware
has come out of the reset state such that it will allow interrupts to be
simulated by the software.
This function runs a self - test on the driver / device . This is a destructive test . This function is an example of how to use the interrupt controller driver component ( XIntc ) and the hardware device . This function is designed to work without any hardware devices to cause interrupts . It may not return if the interrupt controller is not properly connected to the processor in either software or hardware . This function relies on the fact that the interrupt controller hardware has come out of the reset state such that it will allow interrupts to be simulated by the software .
int IntcSelfTestExample(u16 DeviceId)
{
	int Status;
	Status = XIntc_Initialize(&InterruptController, DeviceId);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}
	Status = XIntc_SelfTest(&InterruptController);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}
	return XST_SUCCESS;
}
int IntcSelfTestExample ( u16 DeviceId ) { int Status ; Status = XIntc_Initialize ( & InterruptController , DeviceId ) ; if ( Status != XST_SUCCESS ) { return XST_FAILURE ; } Status = XIntc_SelfTest ( & InterruptController ) ; if ( Status != XST_SUCCESS ) { return XST_FAILURE ; } return XST_SUCCESS ; }
This function runs a self-test on the driver/device.
This function runs a self - test on the driver / device .
/*
	 * Initialize the interrupt controller driver so that it is ready to use.
	 */ /*
	 * Perform a self-test to ensure that the hardware was built correctly.
	 */