XilinxProcessorIPLib/drivers/cfupmc/src/xcfupmc.c
void XCfupmc_CfuErrHandler(const XCfupmc *InstancePtr)
{
	Xil_AssertVoid(InstancePtr != NULL);
	u32 RegVal;

	RegVal = XCfupmc_ReadReg(CFU_APB_CFU_ISR);
	RegVal = RegVal & (CFU_APB_CFU_ISR_DECOMP_ERROR_MASK |
			CFU_APB_CFU_ISR_BAD_CFI_PACKET_MASK |
			CFU_APB_CFU_ISR_AXI_ALIGN_ERROR_MASK |
			CFU_APB_CFU_ISR_CFI_ROW_ERROR_MASK |
			CFU_APB_CFU_ISR_CRC32_ERROR_MASK |
			CFU_APB_CFU_ISR_CRC8_ERROR_MASK);
	if (RegVal != 0U) {
		XCfupmc_Reset(InstancePtr);
		XCfupmc_ClearCfuIsr(InstancePtr);
	}

	return;
}
/*****************************************************************************/
/**
 * This function checks and handles CFU errors
 *
 * @param	InstancePtr is a pointer to the XCfupmc instance.
 *
 * @return	None
 *
 ******************************************************************************/
This function checks and handles CFU errors
@param       InstancePtr is a pointer to the XCfupmc instance.

@return      None
This function checks and handles CFU errors @param InstancePtr is a pointer to the XCfupmc instance . @return None
void XCfupmc_CfuErrHandler(const XCfupmc *InstancePtr)
{
	Xil_AssertVoid(InstancePtr != NULL);
	u32 RegVal;
	RegVal = XCfupmc_ReadReg(CFU_APB_CFU_ISR);
	RegVal = RegVal & (CFU_APB_CFU_ISR_DECOMP_ERROR_MASK |
			CFU_APB_CFU_ISR_BAD_CFI_PACKET_MASK |
			CFU_APB_CFU_ISR_AXI_ALIGN_ERROR_MASK |
			CFU_APB_CFU_ISR_CFI_ROW_ERROR_MASK |
			CFU_APB_CFU_ISR_CRC32_ERROR_MASK |
			CFU_APB_CFU_ISR_CRC8_ERROR_MASK);
	if (RegVal != 0U) {
		XCfupmc_Reset(InstancePtr);
		XCfupmc_ClearCfuIsr(InstancePtr);
	}
	return;
}
void XCfupmc_CfuErrHandler ( const XCfupmc * InstancePtr ) { Xil_AssertVoid ( InstancePtr != NULL ) ; u32 RegVal ; RegVal = XCfupmc_ReadReg ( CFU_APB_CFU_ISR ) ; RegVal = RegVal & ( CFU_APB_CFU_ISR_DECOMP_ERROR_MASK | CFU_APB_CFU_ISR_BAD_CFI_PACKET_MASK | CFU_APB_CFU_ISR_AXI_ALIGN_ERROR_MASK | CFU_APB_CFU_ISR_CFI_ROW_ERROR_MASK | CFU_APB_CFU_ISR_CRC32_ERROR_MASK | CFU_APB_CFU_ISR_CRC8_ERROR_MASK ) ; if ( RegVal != 0U ) { XCfupmc_Reset ( InstancePtr ) ; XCfupmc_ClearCfuIsr ( InstancePtr ) ; } return ; }
This function checks and handles CFU errors
 @param       InstancePtr is a pointer to the XCfupmc instance.
This function checks and handles CFU errors @param InstancePtr is a pointer to the XCfupmc instance .