Mercurial > public > mk2
comparison code_part1/OSTC_code_c_part2/p2_definitions.h @ 163:144822282fa3
Fusion declaration of shared C/ASM variables.
+ remove unused variables.
+ sort all in variables in BANK3, and out variables in BANK2.
author | JeanDo |
---|---|
date | Fri, 21 Jan 2011 01:44:37 +0100 |
parents | 14a074e1a375 |
children | cb055a7d75f3 |
comparison
equal
deleted
inserted
replaced
162:fdebc43c8372 | 163:144822282fa3 |
---|---|
126 void deco_calc_desaturation_time(void); | 126 void deco_calc_desaturation_time(void); |
127 void deco_calc_CNS_fraction(void); | 127 void deco_calc_CNS_fraction(void); |
128 void deco_clear_CNS_fraction(void); | 128 void deco_clear_CNS_fraction(void); |
129 void deco_push_tissues_to_vault(void); | 129 void deco_push_tissues_to_vault(void); |
130 void deco_pull_tissues_from_vault(void); | 130 void deco_pull_tissues_from_vault(void); |
131 | |
132 // ************************************************* | |
133 // ** V A R I A B L E S D E C L A R A T I O N S ** | |
134 // ************************************************* | |
135 // prefixes etc: | |
136 // _O_ = output for use in the assembler code | |
137 // _I_ = input from the assembler code for the c code | |
138 // char_ and int_ = used to identify output and input size | |
139 // var = variable (from b"uhlmann) | |
140 // pres = pressure | |
141 // gtissue = guiding tissue, the one limiting the ascent | |
142 // e2secs = exp of the b"uhlmann formula precalculated for a 2 second step | |
143 // e1min = same for 1 minute step | |
144 // sim = used in simulating the ascent to the surface | |
145 // nullzeit = remaining ground/bottom time for "no deco" | |
146 // hauptroutine = main | |
147 | |
148 extern unsigned int int_O_tissue_for_debug[32]; | |
149 extern unsigned int int_O_GF_spare____; | |
150 extern unsigned int int_O_GF_step; | |
151 extern unsigned int int_O_gtissue_limit; | |
152 extern unsigned int int_O_gtissue_press; | |
153 extern unsigned int int_O_limit_GF_low; | |
154 extern unsigned int int_O_gtissue_press_at_GF_low; | |
155 extern unsigned char char_I_step_is_1min; | |
156 extern unsigned char char_O_GF_low_pointer; | |
157 extern unsigned char char_O_actual_pointer; | |
158 extern unsigned char char_O_deco_table[32]; | |
159 extern unsigned char char_I_table_deco_done[32]; | |
160 extern unsigned int int_O_calc_tissue_call_counter; | |
161 | |
162 //---- Bank 5 parameters ----------------------------------------------------- | |
163 extern unsigned int int_I_pres_respiration; | |
164 extern unsigned int int_I_pres_surface; | |
165 extern unsigned int int_I_temp; | |
166 extern unsigned char char_I_temp; | |
167 extern unsigned char char_I_actual_ppO2; | |
168 extern unsigned char char_I_deco_N2_ratio2; | |
169 extern unsigned char char_I_deco_He_ratio2; | |
170 extern unsigned char char_I_deco_N2_ratio3; | |
171 extern unsigned char char_I_deco_He_ratio3; | |
172 extern unsigned char char_I_deco_N2_ratio4; | |
173 extern unsigned char char_I_deco_He_ratio4; | |
174 extern unsigned char char_I_deco_N2_ratio5; | |
175 extern unsigned char char_I_deco_He_ratio5; | |
176 extern unsigned char char_I_N2_ratio; | |
177 extern unsigned char char_I_He_ratio; | |
178 extern unsigned char char_I_saturation_multiplier; | |
179 extern unsigned char char_I_desaturation_multiplier; | |
180 extern unsigned char char_I_GF_High_percentage; | |
181 extern unsigned char char_I_GF_Low_percentage; | |
182 extern unsigned char char_I_spare; | |
183 extern unsigned char char_I_deco_distance; | |
184 extern unsigned char char_I_const_ppO2; | |
185 extern unsigned char char_I_deco_ppO2_change; | |
186 extern unsigned char char_I_deco_ppO2; | |
187 extern unsigned char char_I_deco_gas_change; | |
188 extern unsigned char char_I_deco_N2_ratio; | |
189 extern unsigned char char_I_deco_He_ratio; | |
190 extern unsigned char char_I_depth_last_deco; | |
191 extern unsigned char char_I_deco_model; | |
192 | |
193 extern unsigned int int_O_desaturation_time; | |
194 extern unsigned char char_O_nullzeit; | |
195 extern unsigned char char_O_deco_status; | |
196 extern unsigned char char_O_array_decotime[7]; | |
197 extern unsigned char char_O_array_decodepth[6]; | |
198 extern unsigned char char_O_ascenttime; | |
199 extern unsigned char char_O_gradient_factor; | |
200 extern unsigned char char_O_tissue_saturation[32]; | |
201 extern unsigned char char_O_array_gradient_weighted[16]; | |
202 extern unsigned char char_O_gtissue_no; | |
203 extern unsigned char char_O_diluent; | |
204 extern unsigned char char_O_CNS_fraction; | |
205 extern unsigned char char_O_relative_gradient_GF; | |
206 extern unsigned char char_I_deco_gas_change2; | |
207 extern unsigned char char_I_deco_gas_change3; | |
208 extern unsigned char char_I_deco_gas_change4; | |
209 extern unsigned char char_I_deco_gas_change5; | |
210 | |
211 //---- Bank 9 parameters ----------------------------------------------------- | |
212 extern unsigned int int_O_DBS_bitfield; | |
213 extern unsigned int int_O_DBS2_bitfield; | |
214 extern unsigned int int_O_DBG_pre_bitfield; | |
215 extern unsigned int int_O_DBG_post_bitfield; | |
216 extern unsigned char char_O_NDL_at_20mtr; |