XilinxProcessorIPLib/drivers/ospipsv/examples/xospipsv_flash_intr_example.c
void OspiPsvHandler(void *CallBackRef, u32 StatusEvent)
{
	/*
	 * If the event was not transfer done, then track it as an error
	 */
	if (StatusEvent != XST_SPI_TRANSFER_DONE) {
		xil_printf("\n Error interrupt occurred %x\r\n", StatusEvent);
		Error = 1;
	} else {
		Error = 0;
	}

	/*
	 * Indicate the transfer on the OSPIPSV bus is no longer in progress
	 * regardless of the status event
	 */
	TransferInProgress = FALSE;
}
/*****************************************************************************/
/**
 *
 * Callback handler.
 *
 * @param        CallBackRef is the upper layer callback reference passed back
 *               when the callback function is invoked.
 * @param        StatusEvent is the event that just occurred.
 *
 * @return	None
 *
 * @note	None.
 *
 *****************************************************************************/
Callback handler.
@param        CallBackRef is the upper layer callback reference passed back
when the callback function is invoked.
@param        StatusEvent is the event that just occurred.

@return      None

@note        None.
Callback handler . @param CallBackRef is the upper layer callback reference passed back when the callback function is invoked . @param StatusEvent is the event that just occurred . @return None @note None .
void OspiPsvHandler(void *CallBackRef, u32 StatusEvent)
{
	if (StatusEvent != XST_SPI_TRANSFER_DONE) {
		xil_printf("\n Error interrupt occurred %x\r\n", StatusEvent);
		Error = 1;
	} else {
		Error = 0;
	}
	TransferInProgress = FALSE;
}
void OspiPsvHandler ( void * CallBackRef , u32 StatusEvent ) { if ( StatusEvent != XST_SPI_TRANSFER_DONE ) { xil_printf ( " \n \r \n " , StatusEvent ) ; Error = 1 ; } else { Error = 0 ; } TransferInProgress = FALSE ; }
Callback handler.
Callback handler .
/*
	 * If the event was not transfer done, then track it as an error
	 */ /*
	 * Indicate the transfer on the OSPIPSV bus is no longer in progress
	 * regardless of the status event
	 */