This API configures the Flash mode to either SDR or DDR mode.
Prototype
u32 XSfl_FlashSetSDRDDRMode(XSfl_Interface *SflInstnacePtr, int Mode, u8 *SflReadBuffer);
Parameters
The following table lists the XSfl_FlashSetSDRDDRMode function arguments.
| Type | Name | Description |
|---|---|---|
| XSfl_Interface | SflInstancePtr | is a pointer to the
XSfl_Interface
driver component to use. |
| int | Mode | is either 1 or 0 if 1 then enter octal DDR mode if 0 exits. |
| u8 | SflReadBuffer | SflReadBuffer |
Returns
- XST_SUCCESS if successful
- XST_FAILURE - In case of failure