diff 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
line wrap: on
line diff
--- a/code_part1/OSTC_code_c_part2/p2_definitions.h	Fri Jan 21 01:48:40 2011 +0100
+++ b/code_part1/OSTC_code_c_part2/p2_definitions.h	Fri Jan 21 01:44:37 2011 +0100
@@ -128,89 +128,3 @@
 void deco_clear_CNS_fraction(void);
 void deco_push_tissues_to_vault(void);
 void deco_pull_tissues_from_vault(void);
-
-// *************************************************
-// ** V A R I A B L E S   D E C L A R A T I O N S **
-// *************************************************
-// prefixes etc:
-// _O_ = output for use in the assembler code
-// _I_ = input from the assembler code for the c code
-// char_ and int_ = used to identify output and input size
-// var = variable (from b"uhlmann)
-// pres = pressure
-// gtissue = guiding tissue, the one limiting the ascent
-// e2secs = exp of the b"uhlmann formula precalculated for a 2 second step
-// e1min = same for 1 minute step
-// sim = used in simulating the ascent to the surface
-// nullzeit = remaining ground/bottom time for "no deco"
-// hauptroutine = main
-
-extern unsigned int  int_O_tissue_for_debug[32];
-extern unsigned int	 int_O_GF_spare____;					
-extern unsigned int	 int_O_GF_step;						
-extern unsigned int  int_O_gtissue_limit;			
-extern unsigned int  int_O_gtissue_press;			
-extern unsigned int  int_O_limit_GF_low;				
-extern unsigned int  int_O_gtissue_press_at_GF_low;	
-extern unsigned char char_I_step_is_1min;		
-extern unsigned char char_O_GF_low_pointer;		
-extern unsigned char char_O_actual_pointer;		
-extern unsigned char char_O_deco_table[32];		
-extern unsigned char char_I_table_deco_done[32];
-extern unsigned int  int_O_calc_tissue_call_counter;
-
-//---- Bank 5 parameters -----------------------------------------------------
-extern unsigned int  int_I_pres_respiration;
-extern unsigned int  int_I_pres_surface;	
-extern unsigned int  int_I_temp;
-extern unsigned char char_I_temp;
-extern unsigned char char_I_actual_ppO2;	
-extern unsigned char char_I_deco_N2_ratio2; 
-extern unsigned char char_I_deco_He_ratio2; 
-extern unsigned char char_I_deco_N2_ratio3; 
-extern unsigned char char_I_deco_He_ratio3; 
-extern unsigned char char_I_deco_N2_ratio4; 
-extern unsigned char char_I_deco_He_ratio4; 
-extern unsigned char char_I_deco_N2_ratio5; 
-extern unsigned char char_I_deco_He_ratio5; 
-extern unsigned char char_I_N2_ratio;		
-extern unsigned char char_I_He_ratio;		
-extern unsigned char char_I_saturation_multiplier;
-extern unsigned char char_I_desaturation_multiplier;
-extern unsigned char char_I_GF_High_percentage;
-extern unsigned char char_I_GF_Low_percentage;
-extern unsigned char char_I_spare;
-extern unsigned char char_I_deco_distance;
-extern unsigned char char_I_const_ppO2;
-extern unsigned char char_I_deco_ppO2_change;
-extern unsigned char char_I_deco_ppO2;
-extern unsigned char char_I_deco_gas_change;
-extern unsigned char char_I_deco_N2_ratio;
-extern unsigned char char_I_deco_He_ratio;
-extern unsigned char char_I_depth_last_deco;
-extern unsigned char char_I_deco_model;
-
-extern unsigned int  int_O_desaturation_time;			
-extern unsigned char char_O_nullzeit;					
-extern unsigned char char_O_deco_status;				
-extern unsigned char char_O_array_decotime[7];			
-extern unsigned char char_O_array_decodepth[6];		
-extern unsigned char char_O_ascenttime;				
-extern unsigned char char_O_gradient_factor;			
-extern unsigned char char_O_tissue_saturation[32];		
-extern unsigned char char_O_array_gradient_weighted[16];
-extern unsigned char char_O_gtissue_no;				
-extern unsigned char char_O_diluent;				
-extern unsigned char char_O_CNS_fraction;			
-extern unsigned char char_O_relative_gradient_GF;	
-extern unsigned char char_I_deco_gas_change2;       
-extern unsigned char char_I_deco_gas_change3;       
-extern unsigned char char_I_deco_gas_change4;       
-extern unsigned char char_I_deco_gas_change5;       
-
-//---- Bank 9 parameters -----------------------------------------------------
-extern unsigned int  int_O_DBS_bitfield;				
-extern unsigned int  int_O_DBS2_bitfield;				
-extern unsigned int  int_O_DBG_pre_bitfield;			
-extern unsigned int  int_O_DBG_post_bitfield;			
-extern unsigned char char_O_NDL_at_20mtr;