psp_spifi_init


This function is provided by the PSP to initialize the device.

Format

int psp_spifi_init (
    uint8_t      uid,
    uint32_t *   p_flash_base,
    uint32_t *   p_density )

Arguments

Argument Description Type
uid The unit ID. uint8_t
p_flash_base A pointer to the flash base. uint32_t *
p_density A pointer to the device size. uint32_t *

Return Values

Return value Description
PSP_SPIFI_SUCCESS Successful execution.
PSP_SPIFI_ERROR Operation failed.