XilinxProcessorIPLib/drivers/axipmon/examples/xaxipmon_intr_example.c
static void AxiPmonInterruptHandler(void *CallBackRef)
{
	u32 IntrStatus;

	XAxiPmon *AxiPmonPtr = (XAxiPmon *)CallBackRef;

	/*
	 * Get the interrupt status from the device and check the value.
	 */
	IntrStatus = XAxiPmon_IntrGetStatus(AxiPmonPtr);

	if (IntrStatus & XAPM_IXR_SIC_OVERFLOW_MASK) {
		/*
		 * Set Sample Interval Counter Overflow interrupt flag so
		 * the code in application context can be aware of this interrupt.
		 */
		SampleCounterIntr = TRUE;

	}

	/*
	 * Clear Interrupt Status Register.
	 */
	XAxiPmon_IntrClear(AxiPmonPtr, IntrStatus);

 }
/*****************************************************************************/
/**
*
* This function is the Interrupt Service Routine for the AXI Performance
* Monitor device. It will be called by the processor whenever an interrupt is
* asserted by the device.
*
* There are 13 different interrupts supported
*	- Sample Interval Counter Overflow Interrupt
*	- Global Clock Counter Overflow Interrupt
*	- Event Log FIFO full Interrupt
*	- Metric Counter 0 overflow Interrupt
*	- Metric Counter 1 overflow Interrupt
*	- Metric Counter 2 overflow Interrupt
*	- Metric Counter 3 overflow Interrupt
*	- Metric Counter 4 overflow Interrupt
*	- Metric Counter 5 overflow Interrupt
*	- Metric Counter 6 overflow Interrupt
*	- Metric Counter 7 overflow Interrupt
*	- Metric Counter 8 overflow Interrupt
*	- Metric Counter 9 overflow Interrupt
* This function only handles Sample Interval Counter Overflow Interrupt.
* User of this code may need to modify the code to meet needs of the
* application.
*
* @param	CallBackRef is the callback reference passed from the Interrupt
*		controller driver, which in our case is a pointer to the
*		driver instance.
*
* @return	None.
*
* @note		This function is called within interrupt context.
*
******************************************************************************/
This function is the Interrupt Service Routine for the AXI Performance
Monitor device. It will be called by the processor whenever an interrupt is
asserted by the device.

There are 13 different interrupts supported
Sample Interval Counter Overflow Interrupt
Global Clock Counter Overflow Interrupt
Event Log FIFO full Interrupt
Metric Counter 0 overflow Interrupt
Metric Counter 1 overflow Interrupt
Metric Counter 2 overflow Interrupt
Metric Counter 3 overflow Interrupt
Metric Counter 4 overflow Interrupt
Metric Counter 5 overflow Interrupt
Metric Counter 6 overflow Interrupt
Metric Counter 7 overflow Interrupt
Metric Counter 8 overflow Interrupt
Metric Counter 9 overflow Interrupt
This function only handles Sample Interval Counter Overflow Interrupt.
User of this code may need to modify the code to meet needs of the
application.
This function is the Interrupt Service Routine for the AXI Performance Monitor device . It will be called by the processor whenever an interrupt is asserted by the device . There are 13 different interrupts supported Sample Interval Counter Overflow Interrupt Global Clock Counter Overflow Interrupt Event Log FIFO full Interrupt Metric Counter 0 overflow Interrupt Metric Counter 1 overflow Interrupt Metric Counter 2 overflow Interrupt Metric Counter 3 overflow Interrupt Metric Counter 4 overflow Interrupt Metric Counter 5 overflow Interrupt Metric Counter 6 overflow Interrupt Metric Counter 7 overflow Interrupt Metric Counter 8 overflow Interrupt Metric Counter 9 overflow Interrupt This function only handles Sample Interval Counter Overflow Interrupt . User of this code may need to modify the code to meet needs of the application .
static void AxiPmonInterruptHandler(void *CallBackRef)
{
	u32 IntrStatus;
	XAxiPmon *AxiPmonPtr = (XAxiPmon *)CallBackRef;
	IntrStatus = XAxiPmon_IntrGetStatus(AxiPmonPtr);
	if (IntrStatus & XAPM_IXR_SIC_OVERFLOW_MASK) {
		SampleCounterIntr = TRUE;
	}
	XAxiPmon_IntrClear(AxiPmonPtr, IntrStatus);
 }
static void AxiPmonInterruptHandler ( void * CallBackRef ) { u32 IntrStatus ; XAxiPmon * AxiPmonPtr = ( XAxiPmon * ) CallBackRef ; IntrStatus = XAxiPmon_IntrGetStatus ( AxiPmonPtr ) ; if ( IntrStatus & XAPM_IXR_SIC_OVERFLOW_MASK ) { SampleCounterIntr = TRUE ; } XAxiPmon_IntrClear ( AxiPmonPtr , IntrStatus ) ; }
This function is the Interrupt Service Routine for the AXI Performance
Monitor device.
This function is the Interrupt Service Routine for the AXI Performance Monitor device .
/*
	 * Get the interrupt status from the device and check the value.
	 */ /*
		 * Set Sample Interval Counter Overflow interrupt flag so
		 * the code in application context can be aware of this interrupt.
		 */ /*
	 * Clear Interrupt Status Register.
	 */