comparison code_part1/OSTC_code_c_part2/p2_definitions.h @ 184:016c45a0caaf

Enable to compile p2_deco.c on other platforms.
author JeanDo
date Sun, 06 Feb 2011 19:32:11 +0100
parents cb055a7d75f3
children c8816e4bc724
comparison
equal deleted inserted replaced
183:f720ce017244 184:016c45a0caaf
21 // 21 //
22 ////////////////////////////////////////////////////////////////////////////// 22 //////////////////////////////////////////////////////////////////////////////
23 // history: 23 // history:
24 // 12/25/10 v110: [jDG] split in three files (deco.c, main.c, definitions.h) 24 // 12/25/10 v110: [jDG] split in three files (deco.c, main.c, definitions.h)
25 25
26 # define DBG_c_gas 0b0000000000000001 26 #define DBG_c_gas 0x0001
27 # define DBG_c_ppO2 0b0000000000000010 27 #define DBG_c_ppO2 0x0002
28 # define DBG_RUN 0b0000000000000100 28 #define DBG_RUN 0x0004
29 # define DBG_RESTART 0b0000000000001000 29 #define DBG_RESTART 0x0008
30 30
31 # define DBG_CdeSAT 0b0000000000010000 31 #define DBG_CdeSAT 0x0010
32 # define DBG_C_MODE 0b0000000000100000 32 #define DBG_C_MODE 0x0020
33 # define DBG_C_SURF 0b0000000001000000 33 #define DBG_C_SURF 0x0040
34 # define DBG_HEwoHE 0b0000000010000000 34 #define DBG_HEwoHE 0x0080
35 35
36 # define DBG_C_DPPO2 0b0000000100000000 36 #define DBG_C_DPPO2 0x0100
37 # define DBG_C_DGAS 0b0000001000000000 37 #define DBG_C_DGAS 0x0200
38 # define DBG_C_DIST 0b0000010000000000 38 #define DBG_C_DIST 0x0400
39 # define DBG_C_LAST 0b0000100000000000 39 #define DBG_C_LAST 0x0800
40 40
41 # define DBG_C_GF 0b0001000000000000 41 #define DBG_C_GF 0x1000
42 # define DBG_ZH16ERR 0b0010000000000000 42 #define DBG_ZH16ERR 0x2000
43 # define DBG_PHIGH 0b0100000000000000 43 #define DBG_PHIGH 0x4000
44 # define DBG_PLOW 0b1000000000000000 44 #define DBG_PLOW 0x8000
45 45
46 #define DBS_mode 0x0001
47 #define DBS_ppO2 0x0002
48 #define DBS_HE_sat 0x0004
49 #define DBS_ppO2chg 0x0008
50
51 #define DBS_SAT2l 0x0010
52 #define DBS_SAT2h 0x0020
53 #define DBS_GFLOW2l 0x0040
54 #define DBS_GFLOW2h 0x0080
55
56 #define DBS_GFHGH2l 0x0100
57 #define DBS_GFHGH2h 0x0200
58 #define DBS_GASO22l 0x0400
59 #define DBS_GASO22h 0x0800
60
61 #define DBS_DIST2h 0x1000
62 #define DBS_LAST2h 0x2000
63 #define DBS_DECOO2l 0x4000
64 #define DBS_DECOO2h 0x8000
46 65
47 # define DBS_mode 0b0000000000000001 66 #define DBS2_PRES2h 0x0001
48 # define DBS_ppO2 0b0000000000000010 67 #define DBS2_PRES2l 0x0002
49 # define DBS_HE_sat 0b0000000000000100 68 #define DBS2_SURF2l 0x0004
50 # define DBS_ppO2chg 0b0000000000001000 69 #define DBS2_SURF2h 0x0008
70
71 #define DBS2_DESAT2l 0x0010
72 #define DBS2_DESAT2h 0x0020
73 #define DBS2_GFDneg 0x0040
51 74
52 # define DBS_SAT2l 0b0000000000010000 75 #define MBAR_REACH_GASCHANGE_AUTO_CHANGE_OFF 150
53 # define DBS_SAT2h 0b0000000000100000
54 # define DBS_GFLOW2l 0b0000000001000000
55 # define DBS_GFLOW2h 0b0000000010000000
56
57 # define DBS_GFHGH2l 0b0000000100000000
58 # define DBS_GFHGH2h 0b0000001000000000
59 # define DBS_GASO22l 0b0000010000000000
60 # define DBS_GASO22h 0b0000100000000000
61
62 # define DBS_DIST2h 0b0001000000000000
63 # define DBS_LAST2h 0b0010000000000000
64 # define DBS_DECOO2l 0b0100000000000000
65 # define DBS_DECOO2h 0b1000000000000000
66
67
68 # define DBS2_PRES2h 0b0000000000000001
69 # define DBS2_PRES2l 0b0000000000000010
70 # define DBS2_SURF2l 0b0000000000000100
71 # define DBS2_SURF2h 0b0000000000001000
72
73 # define DBS2_DESAT2l 0b0000000000010000
74 # define DBS2_DESAT2h 0b0000000000100000
75 # define DBS2_GFDneg 0b0000000001000000
76 # define DBS2_ 0b000000000000000
77
78 # define DBS2_ 0b000000000000000
79 # define DBS2_ 0b000000000000000
80 # define DBS2_ 0b000000000000000
81 # define DBS2_ 0b000000000000000
82
83 # define MBAR_REACH_GASCHANGE_AUTO_CHANGE_OFF 150
84 76
85 // ************************* 77 // *************************
86 // ** P R O T O T Y P E S ** 78 // ** P R O T O T Y P E S **
87 // ************************* 79 // *************************
88 80
99 extern void deco_calc_CNS_fraction(void); 91 extern void deco_calc_CNS_fraction(void);
100 extern void deco_clear_CNS_fraction(void); 92 extern void deco_clear_CNS_fraction(void);
101 extern void deco_push_tissues_to_vault(void); 93 extern void deco_push_tissues_to_vault(void);
102 extern void deco_pull_tissues_from_vault(void); 94 extern void deco_pull_tissues_from_vault(void);
103 95
96 // ***********************************************
97 // ** Allow compile on VisualC **
98 // ***********************************************
99
100 #ifdef WIN32
101 // Some keywords just dont exists on Visual C++:
102 # define CROSS_COMPILE
103 # define __18CXX
104 # define ram
105 # define rom
106 # define overlay
107 # define PARAMETER
108
109 // Avoid warnings about float/double mismatches:
110 # pragma warning(disable: 4244 4068 4305)
111 #else
112 # define PARAMETER static
113 #endif
114
104 ////////////////////////////////////////////////////////////////////////////// 115 //////////////////////////////////////////////////////////////////////////////