• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_ARMV8
25 
26 #define OS_GIC_VER 2
27 
28 #ifndef OS_HARDWARE_PLATFORM
29 #define OS_HARDWARE_PLATFORM OS_ARMV8
30 #endif
31 
32 #ifndef OS_CPU_TYPE
33 #define OS_CPU_TYPE OS_RASPI4
34 #endif
35 
36 #define OS_MAX_CORE_NUM 4
37 
38 #define OS_THIS_CORE 3
39 
40 #ifndef OS_BYTE_ORDER
41 #define OS_BYTE_ORDER OS_LITTLE_ENDIAN
42 #endif
43 
44 #define OS_CACHE_LINE_SIZE 64
45 
46 #define OS_OPTION_EVENT
47 
48 #define OS_OPTION_QUEUE
49 
50 #define OS_OPTION_HWI_PRIORITY
51 
52 #define OS_OPTION_HWI_ATTRIBUTE
53 
54 #define OS_OPTION_SYS_TIME_USR
55 
56 #define OS_OPTION_TASK
57 
58 #define OS_OPTION_TASK_DELETE
59 
60 #define OS_OPTION_TASK_SUSPEND
61 
62 #define OS_OPTION_TASK_INFO
63 
64 #define OS_OPTION_TASK_YIELD
65 
66 #define OS_TSK_PRIORITY_HIGHEST 0
67 
68 #define OS_TSK_PRIORITY_LOWEST 63
69 
70 #define OS_TSK_NUM_OF_PRIORITIES 64
71 
72 #define OS_TSK_CORE_BYTES_IN_PID 2
73 
74 #define OS_OPTION_TICK
75 
76 #define OS_OPTION_CPUP_WARN
77 
78 #define OS_OPTION_RND
79 
80 #define OS_OPTION_POSIX
81 
82 #define OS_POSIX_TYPE_NEWLIB
83 
84 #define OS_OPTION_OPENAMP
85 
86 #ifdef __cplusplus
87 #if __cplusplus
88 }
89 #endif
90 #endif
91 
92 /* common macros's definitions */
93 #include "prt_buildef_common.h"
94 
95 #endif
96