XilinxProcessorIPLib/drivers/emacps/examples/xemacps_example_intr_dma.c
static void XEmacPsRecvHandler(void *Callback)
{
	XEmacPs *EmacPsInstancePtr = (XEmacPs *) Callback;

	/*
	 * Disable the transmit related interrupts
	 */
	XEmacPs_IntDisable(EmacPsInstancePtr, (XEMACPS_IXR_FRAMERX_MASK |
		XEMACPS_IXR_RX_ERR_MASK));
	/*
	 * Increment the counter so that main thread knows something
	 * happened.
	 */
	FramesRx++;
	if (EmacPsInstancePtr->Config.IsCacheCoherent == 0) {
		Xil_DCacheInvalidateRange((UINTPTR)&RxFrame, sizeof(EthernetFrame));
	}
	if (GemVersion > 2) {
		if (EmacPsInstancePtr->Config.IsCacheCoherent == 0) {
			Xil_DCacheInvalidateRange((UINTPTR)RxBdSpacePtr, 64);
		}
	}
}
/****************************************************************************/
/**
*
* This is the Receive handler callback function and will increment a shared
* counter that can be shared by the main thread of operation.
*
* @param	Callback is a pointer to the instance of the EmacPs device.
*
* @return	None.
*
* @note		None.
*
*****************************************************************************/
This is the Receive handler callback function and will increment a shared
counter that can be shared by the main thread of operation.
This is the Receive handler callback function and will increment a shared counter that can be shared by the main thread of operation .
static void XEmacPsRecvHandler(void *Callback)
{
	XEmacPs *EmacPsInstancePtr = (XEmacPs *) Callback;
	XEmacPs_IntDisable(EmacPsInstancePtr, (XEMACPS_IXR_FRAMERX_MASK |
		XEMACPS_IXR_RX_ERR_MASK));
	FramesRx++;
	if (EmacPsInstancePtr->Config.IsCacheCoherent == 0) {
		Xil_DCacheInvalidateRange((UINTPTR)&RxFrame, sizeof(EthernetFrame));
	}
	if (GemVersion > 2) {
		if (EmacPsInstancePtr->Config.IsCacheCoherent == 0) {
			Xil_DCacheInvalidateRange((UINTPTR)RxBdSpacePtr, 64);
		}
	}
}
static void XEmacPsRecvHandler ( void * Callback ) { XEmacPs * EmacPsInstancePtr = ( XEmacPs * ) Callback ; XEmacPs_IntDisable ( EmacPsInstancePtr , ( XEMACPS_IXR_FRAMERX_MASK | XEMACPS_IXR_RX_ERR_MASK ) ) ; FramesRx ++ ; if ( EmacPsInstancePtr -> Config . IsCacheCoherent == 0 ) { Xil_DCacheInvalidateRange ( ( UINTPTR ) & RxFrame , sizeof ( EthernetFrame ) ) ; } if ( GemVersion > 2 ) { if ( EmacPsInstancePtr -> Config . IsCacheCoherent == 0 ) { Xil_DCacheInvalidateRange ( ( UINTPTR ) RxBdSpacePtr , 64 ) ; } } }
This is the Receive handler callback function and will increment a shared
counter that can be shared by the main thread of operation.
This is the Receive handler callback function and will increment a shared counter that can be shared by the main thread of operation .
/*
	 * Disable the transmit related interrupts
	 */ /*
	 * Increment the counter so that main thread knows something
	 * happened.
	 */