/* Execute ISP commands to erase then write User Configuration.  */
int32_t FMC_WriteConfig(uint32_t u32Config[], uint32_t u32Count)
/* Execute ISP commands to erase then write User Configuration.  */
int32_t FMC_WriteConfig(uint32_t u32Config[], uint32_t u32Count)
{
    int32_t ret = 0;
    uint32_t i;
    for (i = 0u; i < u32Count; i++)
    {
        FMC_Write(FMC_CONFIG_BASE + i * 4u, u32Config[i]);
        if (FMC_Read(FMC_CONFIG_BASE + i * 4u) != u32Config[i])
        {
            ret = -1;
        }
    }
    return ret;
}