XilinxProcessorIPLib/drivers/pmonpsv/examples/xpmonpsv_selftest_example.c
static u32 XpmonpsvSelfTestExample(u16 DeviceId)
{
	u32 Status;
	XPmonPsv_Config *ConfigPtr;/* Pointer to configuration data */

	/*
	 * Initialize the PmonPsv driver so that it is ready
	 * to use.
	 */
	ConfigPtr = XPmonPsv_LookupConfig(DeviceId);
	if (ConfigPtr == NULL) {
		return XST_FAILURE;
	}

	Status = XPmonPsv_CfgInitialize(&PmonPsvInstance, ConfigPtr, ConfigPtr->BaseAddress);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}

	Status =  XPmonPsv_SelfTest(&PmonPsvInstance);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}
	return XST_SUCCESS;

}
/*****************************************************************************/
/**
*
* This function does a selftest on the PMONPSV device and coresight_apm driver as an
* example.
*
* @param	DeviceId is the XPAR_<PMONPSV_instance>_DEVICE_ID value from
*		xparameters.h.
*
* @return	XST_SUCCESS if successful, XST_FAILURE if unsuccessful.
*
* @note		None.
*
****************************************************************************/
This function does a selftest on the PMONPSV device and coresight_apm driver as an
example.
This function does a selftest on the PMONPSV device and coresight_apm driver as an example .
static u32 XpmonpsvSelfTestExample(u16 DeviceId)
{
	u32 Status;
	XPmonPsv_Config *ConfigPtr;
	ConfigPtr = XPmonPsv_LookupConfig(DeviceId);
	if (ConfigPtr == NULL) {
		return XST_FAILURE;
	}
	Status = XPmonPsv_CfgInitialize(&PmonPsvInstance, ConfigPtr, ConfigPtr->BaseAddress);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}
	Status =  XPmonPsv_SelfTest(&PmonPsvInstance);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}
	return XST_SUCCESS;
}
static u32 XpmonpsvSelfTestExample ( u16 DeviceId ) { u32 Status ; XPmonPsv_Config * ConfigPtr ; ConfigPtr = XPmonPsv_LookupConfig ( DeviceId ) ; if ( ConfigPtr == NULL ) { return XST_FAILURE ; } Status = XPmonPsv_CfgInitialize ( & PmonPsvInstance , ConfigPtr , ConfigPtr -> BaseAddress ) ; if ( Status != XST_SUCCESS ) { return XST_FAILURE ; } Status = XPmonPsv_SelfTest ( & PmonPsvInstance ) ; if ( Status != XST_SUCCESS ) { return XST_FAILURE ; } return XST_SUCCESS ; }
This function does a selftest on the PMONPSV device and coresight_apm driver as an
example.
This function does a selftest on the PMONPSV device and coresight_apm driver as an example .
/* Pointer to configuration data */ /*
	 * Initialize the PmonPsv driver so that it is ready
	 * to use.
	 */