• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 Chipsea Technologies (Shenzhen) Corp., Ltd. All rights reserved.
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  */
15 #ifndef _CO_TYPES_DEF_H_
16 #define _CO_TYPES_DEF_H_
17 
18 /****************************************************************************
19  *
20  * Common definitions
21  *
22  ****************************************************************************/
23 
24 #ifdef FALSE
25 #undef FALSE
26 #endif
27 #ifdef TRUE
28 #undef TRUE
29 #endif
30 
31 typedef enum { FALSE = 0, TRUE = 1 } Boolean;
32 /*chipsea define  conflicting LOS */
33 //typedef unsigned char               BOOL;
34 typedef unsigned char               U8;
35 typedef unsigned short              U16;
36 typedef unsigned int                U32;
37 typedef signed char                 S8;
38 typedef signed short                S16;
39 typedef signed int                  S32;
40 typedef unsigned char               u8;
41 typedef unsigned short              u16;
42 typedef unsigned long               u32;
43 typedef unsigned long long          u64;
44 typedef signed char                 s8;
45 typedef signed short                s16;
46 typedef signed long                 s32;
47 typedef signed long long            s64;
48 typedef unsigned char               byte;           /*  unsigned 8-bit data     */
49 typedef unsigned short              word;           /*  unsigned 16-bit data    */
50 typedef unsigned long               dword;          /*  unsigned 32-bit data    */
51 
52 #endif /* _CO_TYPES_DEF_H_ */
53