This function resets the flash device and places it in read mode.
Note: None.
Prototype
int XFlash_Reset(XFlash *InstancePtr);
Parameters
The following table lists the XFlash_Reset function arguments.
| Type | Name | Description |
|---|---|---|
| XFlash * | InstancePtr | Pointer to the XFlash instance. |
Returns
- XST_SUCCESS if successful.
- XFLASH_BUSY if the flash devices were in the middle of an operation and could not be reset.
-
XFLASH_ERROR if the device(s) have experienced an internal error during the operation.
XFlash_DeviceControl()must be used to access the cause of the device specific error. condition.