XilinxProcessorIPLib/drivers/cfupmc/src/xcfupmc.c
void XCfupmc_SetGlblSigEn(const XCfupmc *InstancePtr, u8 Enable)
{

	Xil_AssertVoid(InstancePtr != NULL);

	/* Remove CFU Protection */
	XCfupmc_WriteReg(CFU_APB_CFU_PROTECT, CFUPMC_PROT_DISABLE);

	if (Enable == CFUPMC_GLB_SIG_EN) {
		/* Assert EN_GLOB */
		XCfupmc_MaskRegWrite(InstancePtr, CFU_APB_CFU_FGCR,
		     CFU_APB_CFU_FGCR_EN_GLOBS_B_MASK,
			 CFU_APB_CFU_FGCR_EN_GLOBS_B_ASSERT_VAL);
	}
	else {
		/* Deassert EN_GLOB */
		XCfupmc_MaskRegWrite(InstancePtr, CFU_APB_CFU_FGCR,
			CFU_APB_CFU_FGCR_EN_GLOBS_B_MASK,
			CFU_APB_CFU_FGCR_EN_GLOBS_B_MASK);
	}

	/* Enable CFU Protection */
	XCfupmc_WriteReg(CFU_APB_CFU_PROTECT, CFUPMC_PROT_ENABLE);
}
/*****************************************************************************/
/**
 * This function enables or disables the global signals
 *
 * @param	InstancePtr is a pointer to the XCfupmc instance.
 *
 * @return	None
 *
 ******************************************************************************/
This function enables or disables the global signals
@param       InstancePtr is a pointer to the XCfupmc instance.

@return      None
This function enables or disables the global signals @param InstancePtr is a pointer to the XCfupmc instance . @return None
void XCfupmc_SetGlblSigEn(const XCfupmc *InstancePtr, u8 Enable)
{
	Xil_AssertVoid(InstancePtr != NULL);
	XCfupmc_WriteReg(CFU_APB_CFU_PROTECT, CFUPMC_PROT_DISABLE);
	if (Enable == CFUPMC_GLB_SIG_EN) {
		XCfupmc_MaskRegWrite(InstancePtr, CFU_APB_CFU_FGCR,
		     CFU_APB_CFU_FGCR_EN_GLOBS_B_MASK,
			 CFU_APB_CFU_FGCR_EN_GLOBS_B_ASSERT_VAL);
	}
	else {
		XCfupmc_MaskRegWrite(InstancePtr, CFU_APB_CFU_FGCR,
			CFU_APB_CFU_FGCR_EN_GLOBS_B_MASK,
			CFU_APB_CFU_FGCR_EN_GLOBS_B_MASK);
	}
	XCfupmc_WriteReg(CFU_APB_CFU_PROTECT, CFUPMC_PROT_ENABLE);
}
void XCfupmc_SetGlblSigEn ( const XCfupmc * InstancePtr , u8 Enable ) { Xil_AssertVoid ( InstancePtr != NULL ) ; XCfupmc_WriteReg ( CFU_APB_CFU_PROTECT , CFUPMC_PROT_DISABLE ) ; if ( Enable == CFUPMC_GLB_SIG_EN ) { XCfupmc_MaskRegWrite ( InstancePtr , CFU_APB_CFU_FGCR , CFU_APB_CFU_FGCR_EN_GLOBS_B_MASK , CFU_APB_CFU_FGCR_EN_GLOBS_B_ASSERT_VAL ) ; } else { XCfupmc_MaskRegWrite ( InstancePtr , CFU_APB_CFU_FGCR , CFU_APB_CFU_FGCR_EN_GLOBS_B_MASK , CFU_APB_CFU_FGCR_EN_GLOBS_B_MASK ) ; } XCfupmc_WriteReg ( CFU_APB_CFU_PROTECT , CFUPMC_PROT_ENABLE ) ; }
This function enables or disables the global signals
 @param       InstancePtr is a pointer to the XCfupmc instance.
This function enables or disables the global signals @param InstancePtr is a pointer to the XCfupmc instance .
/* Remove CFU Protection */ /* Assert EN_GLOB */ /* Deassert EN_GLOB */ /* Enable CFU Protection */