1 /* 2 * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 * Description: UPG product definitions header file 15 */ 16 17 #ifndef UPG_DEFINITIONS_PORTING_H 18 #define UPG_DEFINITIONS_PORTING_H 19 20 #ifdef __cplusplus 21 #if __cplusplus 22 extern "C" { 23 #endif 24 #endif 25 26 /** 27 * @defgroup middleware_chips_ws63_update_api update 28 * @ingroup middleware_chips 29 * @{ 30 */ 31 32 /** 33 * @if Eng 34 * @brief flashboot signature image ids. 35 * @else 36 * @brief flashboot签名镜像ID 37 * @endif 38 */ 39 #define FLASH_BOOT_SIGNATURE_IMAGE_ID 0x4B1E3C1E 40 41 /** 42 * @if Eng 43 * @brief Image ids. 44 * @else 45 * @brief flashboot镜像ID 46 * @endif 47 */ 48 #define FLASH_BOOT_IMAGE_ID 0x4B1E3C2D 49 50 /** 51 * @if Eng 52 * @brief Application signature image ids. 53 * @else 54 * @brief Application签名镜像ID 55 * @endif 56 */ 57 #define APPLICATION_SIGNATURE_IMAGE_ID 0x4B0F2D1E 58 59 /** 60 * @if Eng 61 * @brief Application image ids. 62 * @else 63 * @brief Application镜像ID 64 * @endif 65 */ 66 #define APPLICATION_IMAGE_ID 0x4B0F2D2D 67 68 /** 69 * @if Eng 70 * @brief HiLink image ids. 71 * @else 72 * @brief HiLink镜像ID 73 * @endif 74 */ 75 #define HILINK_IMAGE_ID 0x5A87A52D 76 77 /** 78 * @if Eng 79 * @brief key area reserved length. 80 * @else 81 * @brief key区保留字段长度 82 * @endif 83 */ 84 #define KEY_AREA_RESERVED_LEN 52 85 86 /** 87 * @if Eng 88 * @brief info area user defined length. 89 * @else 90 * @brief info区用户字段长度 91 * @endif 92 */ 93 #define INFO_AREA_USER_LEN 112 94 95 /** 96 * @if Eng 97 * @brief signature length. 98 * @else 99 * @brief 签名字段长度 100 * @endif 101 */ 102 #define SIG_LEN 64 103 104 /** 105 * @if Eng 106 * @brief FOTA external public key. 107 * @else 108 * @brief FOTA二级公钥长度 109 * @endif 110 */ 111 #define PUBLIC_KEY_LEN 64 112 113 #ifdef __cplusplus 114 #if __cplusplus 115 } 116 #endif 117 #endif 118 119 /** 120 * @} 121 */ 122 123 #endif /* UPG_DEFINITIONS_PORTING_H */