ccm
Xilinx SDK Drivers API Documentation
ccm_selftest_example.c File Reference

Overview

This file contains an example using the XCCM driver to do self test on the device.

Note

None

MODIFICATION HISTORY:

Ver   Who     Date     Changes

6.00 adk 03/06/14 First Release. Implimented XCcmSelfTestExample function. Adherence to Xilinx coding guidelines.
 

Macros

#define CCM_DEVICE_ID   XPAR_CCM_0_DEVICE_ID
 CCM Device ID. More...
 

Functions

int XCcmSelfTestExample (u16 DeviceId)
 This function does a minimal test on the XCCM driver. More...
 
int main (void)
 Main function to call the example. More...
 

Variables

XCcm Ccm
 Instance of the CCM Device. More...
 

Macro Definition Documentation

◆ CCM_DEVICE_ID

#define CCM_DEVICE_ID   XPAR_CCM_0_DEVICE_ID

CCM Device ID.

Referenced by main().

Function Documentation

◆ main()

int main ( void  )

Main function to call the example.

Returns
  • XST_SUCCESS if succesful.
  • XST_FAILURE if failed.
Note
None.

References CCM_DEVICE_ID, and XCcmSelfTestExample().

◆ XCcmSelfTestExample()

int XCcmSelfTestExample ( u16  DeviceId)

This function does a minimal test on the XCCM driver.

Parameters
DeviceIdis the XPAR_<CCM_instance>_DEVICE_ID value from xparameters.h.
Returns
  • XST_SUCCESS if succesful.
  • XST_FAILURE if failed.
Note
None.

References XCcm_Config::BaseAddress, XCcm_CfgInitialize(), XCcm_LookupConfig(), and XCcm_SelfTest().

Referenced by main().

Variable Documentation

◆ Ccm

XCcm Ccm

Instance of the CCM Device.