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: Common Boot for Standard Application Core 15 * 16 * Create: 2023-01-09 17 */ 18 19 #ifndef BOOT_DEF_H 20 #define BOOT_DEF_H 21 22 #include "common_def.h" 23 24 #define SZ_1KB 1024 25 #ifndef CONFIG_LOADERBOOT_SUPPORT_DYNAMIC_PACKET_SIZE 26 #define READ_SIZE SZ_1KB 27 #else 28 #define READ_SIZE CONFIG_FLASH_WRITE_SIZE 29 #endif 30 #define SZ_1MB (SZ_1KB * SZ_1KB) 31 #define SZ_4KB 4096 32 33 #define BITS_PER_BYTE 8 34 #define HEXADECIMAL 16 35 #define DECIMAL 10 36 37 #endif