XilinxProcessorIPLib/drivers/axipmon/src/xaxipmon.c
void XAxiPmon_EnableEventLog(XAxiPmon *InstancePtr)
{
	u32 RegVal;

	/*
	 * Assert the arguments.
	 */
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertVoid((InstancePtr->Mode == XAPM_MODE_TRACE) ||
				((InstancePtr->Mode == XAPM_MODE_ADVANCED) &&
				(InstancePtr->Config.IsEventLog == 1U)));

	RegVal = XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
							XAPM_CTL_OFFSET);
	XAxiPmon_WriteReg(InstancePtr->Config.BaseAddress, XAPM_CTL_OFFSET,
				RegVal | XAPM_CR_EVENTLOG_ENABLE_MASK);
}
/*****************************************************************************/
/**
*
* This function enables Event Logging.
*
* @param	InstancePtr is a pointer to the XAxiPmon instance.
*
* @return	None
*
* @note		None
*
*******************************************************************************/
This function enables Event Logging.
This function enables Event Logging .
void XAxiPmon_EnableEventLog(XAxiPmon *InstancePtr)
{
	u32 RegVal;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertVoid((InstancePtr->Mode == XAPM_MODE_TRACE) ||
				((InstancePtr->Mode == XAPM_MODE_ADVANCED) &&
				(InstancePtr->Config.IsEventLog == 1U)));
	RegVal = XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
							XAPM_CTL_OFFSET);
	XAxiPmon_WriteReg(InstancePtr->Config.BaseAddress, XAPM_CTL_OFFSET,
				RegVal | XAPM_CR_EVENTLOG_ENABLE_MASK);
}
void XAxiPmon_EnableEventLog ( XAxiPmon * InstancePtr ) { u32 RegVal ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; Xil_AssertVoid ( ( InstancePtr -> Mode == XAPM_MODE_TRACE ) || ( ( InstancePtr -> Mode == XAPM_MODE_ADVANCED ) && ( InstancePtr -> Config . IsEventLog == 1U ) ) ) ; RegVal = XAxiPmon_ReadReg ( InstancePtr -> Config . BaseAddress , XAPM_CTL_OFFSET ) ; XAxiPmon_WriteReg ( InstancePtr -> Config . BaseAddress , XAPM_CTL_OFFSET , RegVal | XAPM_CR_EVENTLOG_ENABLE_MASK ) ; }
This function enables Event Logging.
This function enables Event Logging .
/*
	 * Assert the arguments.
	 */