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 PRT_BUILDEF_H 16 #define PRT_BUILDEF_H 17 18 #ifdef __cplusplus 19 #if __cplusplus 20 extern "C" { 21 #endif 22 #endif 23 24 #define OS_ARCH_ARMV7_M 25 26 #ifndef OS_HARDWARE_PLATFORM 27 #define OS_HARDWARE_PLATFORM OS_CORTEX_M4 28 #endif 29 30 #ifndef OS_CPU_TYPE 31 #define OS_CPU_TYPE OS_STM32F407 32 #endif 33 34 #define OS_MAX_CORE_NUM 1 35 36 #ifndef OS_BYTE_ORDER 37 #define OS_BYTE_ORDER OS_LITTLE_ENDIAN 38 #endif 39 40 #define OS_OPTION_EVENT 41 42 #define OS_OPTION_QUEUE 43 44 #define OS_OPTION_HWI_COMBINE 45 46 #define OS_OPTION_HWI_PRIORITY 47 48 #define OS_OPTION_HWI_ATTRIBUTE 49 50 #define OS_OPTION_HWI_MAX_NUM_CONFIG 51 52 #define OS_OPTION_TASK 53 54 #define OS_OPTION_TASK_DELETE 55 56 #define OS_OPTION_TASK_SUSPEND 57 58 #define OS_OPTION_TASK_INFO 59 60 #define OS_OPTION_TASK_YIELD 61 62 #define OS_TSK_PRIORITY_HIGHEST 0 63 64 #define OS_TSK_PRIORITY_LOWEST 31 65 66 #define OS_TSK_NUM_OF_PRIORITIES 32 67 68 #define OS_TSK_CORE_BYTES_IN_PID 2 69 70 #define OS_OPTION_CPUP 71 72 #define OS_OPTION_CPUP_WARN 73 74 #define OS_OPTION_RND 75 76 #define OS_LITTLE_ENDIAN 0x1234 77 78 #define OS_BIG_ENDIAN 0x4321 79 80 #define OS_CORTEX_M4 0x1 81 82 #define OS_STM32F407 0x1 83 84 #ifdef __cplusplus 85 #if __cplusplus 86 } 87 #endif 88 #endif 89 90 #endif 91