XilinxProcessorIPLib/drivers/qspips/examples/xqspips_selftest_example.c
int QspiPsSelfTestExample(u16 DeviceId)
{
	int Status;
	XQspiPs_Config *QspiConfig;

	/*
	 * Initialize the QSPI device.
	 */
	QspiConfig = XQspiPs_LookupConfig(DeviceId);
	if (NULL == QspiConfig) {
		return XST_FAILURE;
	}

	Status = XQspiPs_CfgInitialize(&Qspi, QspiConfig, QspiConfig->BaseAddress);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}

	/*
	 * Perform a self-test to check hardware build.
	 */
	Status = XQspiPs_SelfTest(&Qspi);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}


	return XST_SUCCESS;
}
/*****************************************************************************/
/**
*
* This function does a selftest on the QSPI device and XQspiPs driver as an
* example. The purpose of this function is to illustrate the usage of the
* XQspiPs driver.
*
*
* @param	DeviceId is the XPAR_<QSPIPS_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 QSPI device and XQspiPs driver as an
example. The purpose of this function is to illustrate the usage of the
XQspiPs driver.
This function does a selftest on the QSPI device and XQspiPs driver as an example . The purpose of this function is to illustrate the usage of the XQspiPs driver .
int QspiPsSelfTestExample(u16 DeviceId)
{
	int Status;
	XQspiPs_Config *QspiConfig;
	QspiConfig = XQspiPs_LookupConfig(DeviceId);
	if (NULL == QspiConfig) {
		return XST_FAILURE;
	}
	Status = XQspiPs_CfgInitialize(&Qspi, QspiConfig, QspiConfig->BaseAddress);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}
	Status = XQspiPs_SelfTest(&Qspi);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}
	return XST_SUCCESS;
}
int QspiPsSelfTestExample ( u16 DeviceId ) { int Status ; XQspiPs_Config * QspiConfig ; QspiConfig = XQspiPs_LookupConfig ( DeviceId ) ; if ( NULL == QspiConfig ) { return XST_FAILURE ; } Status = XQspiPs_CfgInitialize ( & Qspi , QspiConfig , QspiConfig -> BaseAddress ) ; if ( Status != XST_SUCCESS ) { return XST_FAILURE ; } Status = XQspiPs_SelfTest ( & Qspi ) ; if ( Status != XST_SUCCESS ) { return XST_FAILURE ; } return XST_SUCCESS ; }
This function does a selftest on the QSPI device and XQspiPs driver as an
example.
This function does a selftest on the QSPI device and XQspiPs driver as an example .
/*
	 * Initialize the QSPI device.
	 */ /*
	 * Perform a self-test to check hardware build.
	 */