This function initializes controller interface and serial nor flash connected.
Prototype
u32 XSfl_FlashInit(u8 *SflHandler, XSfl_UserConfig SflUserOptions, u8 ControllerInfo);
Parameters
The following table lists the XSfl_FlashInit function arguments.
| Type | Name | Description |
|---|---|---|
| u8 | SflHandler | handler information |
XSfl_UserConfig
|
SflUserOptions | contains the controller and flash configuration info. |
| u8 | ControllerInfo | contains the type of controller. |
Returns
- SFL index on successful initialization
- XST_FAILURE - In case of failure