xilflash
Vitis Drivers API Documentation
xilflash_devicecontrol_example.c File Reference

Overview

This file contains a design example using the Generic Flash Library.

This example displays the Flash device geometry and properties. The geometry and properties are fetched using Device Control API.

Note
None.
  MODIFICATION HISTORY:
  Ver   Who  Date     Changes


1.01a mta 10/09/07 First release 2.00a ktn 12/04/09 Updated to use the HAL processor APIs/macros 3.00a sdm 03/03/11 Updated to pass BaseAddress and Flash Width to _Initialize API, as required by the new version of the library 4.7 akm 07/23/19 Initialized Status variable to XST_FAILURE. 4.10 akm 07/14/23 Added support for system device-tree flow. *

Functions

int FlashDeviceControlExample (void)
 This function fetches and displays the geometry and properties of the Flash * device. More...
 
int main (void)
 Main function to execute the Flash device control example. More...
 

Function Documentation

int FlashDeviceControlExample ( void  )

This function fetches and displays the geometry and properties of the Flash * device.

Parameters
None.
Returns
XST_SUCCESS if successful else XST_FAILURE.
Note
None.

References XFlash_DeviceControl(), XFlash_Initialize(), and XFlash_Reset().

Referenced by main().

int main ( void  )

Main function to execute the Flash device control example.

Parameters
None
Returns
XST_SUCCESS if successful else XST_FAILURE.
Note
None.

References FlashDeviceControlExample().