lib/sw_services/xilisf/examples/xilisf_atmel_read_write_example.c
void SpiHandler(void *CallBackRef, u32 StatusEvent, u16 ByteCount)
{
	/*
	 * Indicate the transfer on the SPI bus is no longer in progress
	 * regardless of the status event.
	 */
	TransferInProgress = FALSE;

	/*
	 * If the event was not transfer done, then track it as an error.
	 */
	if (StatusEvent != XST_SPI_TRANSFER_DONE) {
		ErrorCount++;
	}
}
/*****************************************************************************/
/**
*
* This function is the handler which performs processing for the SPI driver.
* It is called from an interrupt context such that the amount of processing
* performed should be minimized. It is called when a transfer of SPI data
* completes or an error occurs.
*
* This handler provides an example of how to handle SPI interrupts and
* is application specific.
*
* @param	CallBackRef is the upper layer callback reference passed back
*		when the callback function is invoked.
* @param	StatusEvent is the event that just occurred.
* @param	ByteCount is the number of bytes transferred up until the event
*		occurred.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function is the handler which performs processing for the SPI driver.
It is called from an interrupt context such that the amount of processing
performed should be minimized. It is called when a transfer of SPI data
completes or an error occurs.

This handler provides an example of how to handle SPI interrupts and
is application specific.
This function is the handler which performs processing for the SPI driver . It is called from an interrupt context such that the amount of processing performed should be minimized . It is called when a transfer of SPI data completes or an error occurs . This handler provides an example of how to handle SPI interrupts and is application specific .
void SpiHandler(void *CallBackRef, u32 StatusEvent, u16 ByteCount)
{
	TransferInProgress = FALSE;
	if (StatusEvent != XST_SPI_TRANSFER_DONE) {
		ErrorCount++;
	}
}
void SpiHandler ( void * CallBackRef , u32 StatusEvent , u16 ByteCount ) { TransferInProgress = FALSE ; if ( StatusEvent != XST_SPI_TRANSFER_DONE ) { ErrorCount ++ ; } }
This function is the handler which performs processing for the SPI driver.
This function is the handler which performs processing for the SPI driver .
/*
	 * Indicate the transfer on the SPI bus is no longer in progress
	 * regardless of the status event.
	 */ /*
	 * If the event was not transfer done, then track it as an error.
	 */