XilinxProcessorIPLib/drivers/sysmon/examples/xsysmon_intr_example.c
static void SysMonInterruptHandler(void *CallBackRef)
{
	u32 IntrStatusValue;
	XSysMon *SysMonPtr = (XSysMon *)CallBackRef;

	/*
	 * Get the interrupt status from the device and check the value.
	 */
	IntrStatusValue = XSysMon_IntrGetStatus(SysMonPtr);

	if (IntrStatusValue & XSM_IPIXR_TEMP_MASK) {
		/*
		 * Set Temperature interrupt flag so the code
		 * in application context can be aware of this interrupt.
		 */
		TemperatureIntr = TRUE;
	}

	if (IntrStatusValue & XSM_IPIXR_VCCAUX_MASK) {
		/*
		 * Set VCCAUX interrupt flag so the code in application context
		 * can be aware of this interrupt.
		 */

		VccauxIntr = TRUE;
	}

	/*
	 * Clear all bits in Interrupt Status Register.
	 */
	XSysMon_IntrClear(SysMonPtr, IntrStatusValue);
 }
/*****************************************************************************/
/**
*
* This function is the Interrupt Service Routine for the System Monitor device.
* It will be called by the processor whenever an interrupt is asserted
* by the device.
*
* There are 10 different interrupts supported
*	- Over Temperature
*	- ALARM 0
*	- ALARM 1
*	- ALARM 2
*	- End of Sequence
*	- End of Conversion
*	- JTAG Locked
*	- JATG Modified
*	- Over Temperature deactivate
*	- ALARM 0 deactivate
*
* This function only handles ALARM 0 and ALARM 2 interrupts. 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 System Monitor device.
It will be called by the processor whenever an interrupt is asserted
by the device.

There are 10 different interrupts supported
Over Temperature
ALARM 0
ALARM 1
ALARM 2
End of Sequence
End of Conversion
JTAG Locked
JATG Modified
Over Temperature deactivate
ALARM 0 deactivate

This function only handles ALARM 0 and ALARM 2 interrupts. 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 System Monitor device . It will be called by the processor whenever an interrupt is asserted by the device . There are 10 different interrupts supported Over Temperature ALARM 0 ALARM 1 ALARM 2 End of Sequence End of Conversion JTAG Locked JATG Modified Over Temperature deactivate ALARM 0 deactivate This function only handles ALARM 0 and ALARM 2 interrupts . User of this code may need to modify the code to meet needs of the application .
static void SysMonInterruptHandler(void *CallBackRef)
{
	u32 IntrStatusValue;
	XSysMon *SysMonPtr = (XSysMon *)CallBackRef;
	IntrStatusValue = XSysMon_IntrGetStatus(SysMonPtr);
	if (IntrStatusValue & XSM_IPIXR_TEMP_MASK) {
		TemperatureIntr = TRUE;
	}
	if (IntrStatusValue & XSM_IPIXR_VCCAUX_MASK) {
		VccauxIntr = TRUE;
	}
	XSysMon_IntrClear(SysMonPtr, IntrStatusValue);
 }
static void SysMonInterruptHandler ( void * CallBackRef ) { u32 IntrStatusValue ; XSysMon * SysMonPtr = ( XSysMon * ) CallBackRef ; IntrStatusValue = XSysMon_IntrGetStatus ( SysMonPtr ) ; if ( IntrStatusValue & XSM_IPIXR_TEMP_MASK ) { TemperatureIntr = TRUE ; } if ( IntrStatusValue & XSM_IPIXR_VCCAUX_MASK ) { VccauxIntr = TRUE ; } XSysMon_IntrClear ( SysMonPtr , IntrStatusValue ) ; }
This function is the Interrupt Service Routine for the System Monitor device.
This function is the Interrupt Service Routine for the System Monitor device .
/*
	 * Get the interrupt status from the device and check the value.
	 */ /*
		 * Set Temperature interrupt flag so the code
		 * in application context can be aware of this interrupt.
		 */ /*
		 * Set VCCAUX interrupt flag so the code in application context
		 * can be aware of this interrupt.
		 */ /*
	 * Clear all bits in Interrupt Status Register.
	 */