/* This routine writes the 3 pages allocated for Key store data, Used during manufacturing. Should write pages when 'customer factory page' is not in sealed state.  */
status_t FFR_KeystoreWrite(flash_config_t *config, ffr_key_store_t *pKeyStore)
/* This routine writes the 3 pages allocated for Key store data, Used during manufacturing. Should write pages when 'customer factory page' is not in sealed state.  */
status_t FFR_KeystoreWrite(flash_config_t *config, ffr_key_store_t *pKeyStore)
{
    if (get_rom_api_version() == 0u)
    {
        assert(VERSION0_FLASH_API_TREE);
        return VERSION0_FLASH_API_TREE->ffr_keystore_write(config, pKeyStore);
    }
    else
    {
        assert(VERSION1_FLASH_API_TREE);
        return VERSION1_FLASH_API_TREE->ffr_keystore_write(config, pKeyStore);
    }
}