XilinxProcessorIPLib/drivers/axiethernet/examples/xaxiethernet_example_intr_fifo.c
static void AxiEthernetErrorHandler(XAxiEthernet *AxiEthernet)
{
	u32 Pending = XAxiEthernet_IntPending(AxiEthernet);

	if (Pending & XAE_INT_RXRJECT_MASK) {
		AxiEthernetUtilErrorTrap("AxiEthernet: Rx packet rejected");
	}
	if (Pending & XAE_INT_RXFIFOOVR_MASK) {
		AxiEthernetUtilErrorTrap("AxiEthernet: Rx fifo over run");
	}
	XAxiEthernet_IntClear(AxiEthernet, Pending);

	/*
	 * Bump counter
	 */
	DeviceErrors++;
}
/*****************************************************************************/
/**
*
* This is the Error handler callback function and this function increments the
* the error counter so that the main thread knows the number of errors.
*
* @param	AxiEthernet is a reference to the AxiEthernet device instance.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This is the Error handler callback function and this function increments the
the error counter so that the main thread knows the number of errors.
This is the Error handler callback function and this function increments the the error counter so that the main thread knows the number of errors .
static void AxiEthernetErrorHandler(XAxiEthernet *AxiEthernet)
{
	u32 Pending = XAxiEthernet_IntPending(AxiEthernet);
	if (Pending & XAE_INT_RXRJECT_MASK) {
		AxiEthernetUtilErrorTrap("AxiEthernet: Rx packet rejected");
	}
	if (Pending & XAE_INT_RXFIFOOVR_MASK) {
		AxiEthernetUtilErrorTrap("AxiEthernet: Rx fifo over run");
	}
	XAxiEthernet_IntClear(AxiEthernet, Pending);
	DeviceErrors++;
}
static void AxiEthernetErrorHandler ( XAxiEthernet * AxiEthernet ) { u32 Pending = XAxiEthernet_IntPending ( AxiEthernet ) ; if ( Pending & XAE_INT_RXRJECT_MASK ) { AxiEthernetUtilErrorTrap ( " " ) ; } if ( Pending & XAE_INT_RXFIFOOVR_MASK ) { AxiEthernetUtilErrorTrap ( " " ) ; } XAxiEthernet_IntClear ( AxiEthernet , Pending ) ; DeviceErrors ++ ; }
This is the Error handler callback function and this function increments the
the error counter so that the main thread knows the number of errors.
This is the Error handler callback function and this function increments the the error counter so that the main thread knows the number of errors .
/*
	 * Bump counter
	 */