Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
arm_uc_pal_flashiap.c
00001 // ---------------------------------------------------------------------------- 00002 // Copyright 2016-2017 ARM Ltd. 00003 // 00004 // SPDX-License-Identifier: Apache-2.0 00005 // 00006 // Licensed under the Apache License, Version 2.0 (the "License"); 00007 // you may not use this file except in compliance with the License. 00008 // You may obtain a copy of the License at 00009 // 00010 // http://www.apache.org/licenses/LICENSE-2.0 00011 // 00012 // Unless required by applicable law or agreed to in writing, software 00013 // distributed under the License is distributed on an "AS IS" BASIS, 00014 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00015 // See the License for the specific language governing permissions and 00016 // limitations under the License. 00017 // ---------------------------------------------------------------------------- 00018 00019 #include "arm_uc_config.h" 00020 #if defined(ARM_UC_FEATURE_PAL_FLASHIAP) && (ARM_UC_FEATURE_PAL_FLASHIAP == 1) 00021 00022 #include "update-client-paal/arm_uc_paal_update_api.h" 00023 00024 #include "update-client-pal-flashiap/arm_uc_pal_flashiap_implementation.h" 00025 00026 ARM_UC_PAAL_UPDATE_CAPABILITIES ARM_UC_PAL_FlashIAP_GetCapabilities(void) 00027 { 00028 ARM_UC_PAAL_UPDATE_CAPABILITIES result = { 00029 .installer_arm_hash = 0, 00030 .installer_oem_hash = 0, 00031 .installer_layout = 0, 00032 .firmware_hash = 1, 00033 .firmware_hmac = 0, 00034 .firmware_campaign = 0, 00035 .firmware_version = 1, 00036 .firmware_size = 1 00037 }; 00038 00039 return result; 00040 } 00041 00042 const ARM_UC_PAAL_UPDATE ARM_UCP_FLASHIAP = { 00043 .Initialize = ARM_UC_PAL_FlashIAP_Initialize, 00044 .GetCapabilities = ARM_UC_PAL_FlashIAP_GetCapabilities, 00045 .GetMaxID = ARM_UC_PAL_FlashIAP_GetMaxID, 00046 .Prepare = ARM_UC_PAL_FlashIAP_Prepare, 00047 .Write = ARM_UC_PAL_FlashIAP_Write, 00048 .Finalize = ARM_UC_PAL_FlashIAP_Finalize, 00049 .Read = ARM_UC_PAL_FlashIAP_Read, 00050 .Activate = ARM_UC_PAL_FlashIAP_Activate, 00051 .GetActiveFirmwareDetails = ARM_UC_PAL_FlashIAP_GetActiveDetails, 00052 .GetFirmwareDetails = ARM_UC_PAL_FlashIAP_GetFirmwareDetails, 00053 .GetInstallerDetails = ARM_UC_PAL_FlashIAP_GetInstallerDetails 00054 }; 00055 00056 #endif /* ARM_UC_FEATURE_PAL_FLASHIAP */
Generated on Mon Aug 29 2022 19:53:38 by
