comparison L1/include/l1_types.h @ 3:f93dab57b032

L1/include: TCS211-based version restored
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 09 Jun 2016 00:45:00 +0000
parents 75a11d740a02
children
comparison
equal deleted inserted replaced
2:7c13c26f1aa4 3:f93dab57b032
8 ************* Revision Controle System Header *************/ 8 ************* Revision Controle System Header *************/
9 9
10 //-------------------------------------- 10 //--------------------------------------
11 // Basic DATA types used along L1 code. 11 // Basic DATA types used along L1 code.
12 //-------------------------------------- 12 //--------------------------------------
13
14 #ifndef __L1_TYPES_H__
15 #define __L1_TYPES_H__
16
17 #if !defined (BOOL_FLAG) 13 #if !defined (BOOL_FLAG)
18 #define BOOL_FLAG 14 #define BOOL_FLAG
19 typedef unsigned char BOOL; 15 typedef unsigned char BOOL;
20 #endif /* #if !defined (BOOL_FLAG) */ 16 #endif
21 17
22 // FreeCalypso change 18
23 #if 1 //(OP_L1_STANDALONE == 1)
24
25
26 #if !defined (NUCLEUS) && !defined CHAR_FLAG 19 #if !defined (NUCLEUS) && !defined CHAR_FLAG
27 #define CHAR_FLAG 20 #define CHAR_FLAG
28
29 typedef char CHAR; 21 typedef char CHAR;
30 #endif 22 #endif
31 23
32 typedef unsigned char UWORD8; 24 typedef unsigned char UWORD8;
33 typedef signed char WORD8; 25 typedef signed char WORD8;
36 typedef short WORD16; 28 typedef short WORD16;
37 29
38 typedef unsigned long UWORD32; 30 typedef unsigned long UWORD32;
39 typedef long WORD32; 31 typedef long WORD32;
40 //-------------------------------------- 32 //--------------------------------------
41
42 33
43 #else 34 typedef volatile UWORD16 API;
44 #include "global_types.h" 35 typedef volatile WORD16 API_SIGNED;
45 #endif /* #if (OP_L1_STANDALONE == 1) */
46 36
47 37
48 38
49
50
51 typedef volatile UWORD16 API;
52 typedef volatile WORD16 API_SIGNED;
53 #endif /* #ifndef __L1_TYPES_H__ */
54