1 /* 2 * Copyright (c) 2009-2022 Huawei Technologies Co., Ltd. All rights reserved. 3 * 4 * UniProton is licensed under Mulan PSL v2. 5 * You can use this software according to the terms and conditions of the Mulan PSL v2. 6 * You may obtain a copy of Mulan PSL v2 at: 7 * http://license.coscl.org.cn/MulanPSL2 8 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, 9 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, 10 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. 11 * See the Mulan PSL v2 for more details. 12 * Create: 2009-12-22 13 * Description: the common part buildef.h 14 */ 15 #ifndef OS_BUILDEF_COMMON_H 16 #define OS_BUILDEF_COMMON_H 17 18 /* the endian definition */ 19 #define OS_LITTLE_ENDIAN 0x1234 20 #define OS_BIG_ENDIAN 0x4321 21 22 /* To define OS_HARDWARE_PLATFORM */ 23 /* 编译器有个bug, 未定义的宏的数值默认是0,所以不用使用'0' */ 24 #define OS_CORTEX_M4 0x01 25 #define OS_ARMV8 0x02 26 #define OS_PLATFORM_INVALID 0x03 27 28 /* To define OS_CPU_TYPE */ 29 /* 编译器有个bug, 未定义的宏的数值默认是0,所以不用使用'0' */ 30 #define OS_STM32F407 0x01 31 #define OS_RASPI4 0x02 32 #define OS_HI3093 0x03 33 #define OS_CPU_TYPE_INVALID 0x04 34 35 #ifndef INIT_SEC_L4_TEXT 36 #define INIT_SEC_L4_TEXT 37 #endif 38 39 #ifndef RESET_SEC_DATA 40 #define RESET_SEC_DATA __attribute__((section(".os.init.data"))) 41 #endif 42 43 /* 必须方案sre_buildef的头文件中,否则会出现宏开关不生效的问题 */ 44 #ifdef YES 45 #undef YES 46 #endif 47 #define YES 1 48 49 #ifdef NO 50 #undef NO 51 #endif 52 #define NO 0 53 54 #endif /* OS_BUILDEF_COMMON_H */ 55