0
|
1 // *********************************************************
|
|
2 // ** Common definitions for the OSTC decompression code **
|
|
3 // *********************************************************
|
|
4
|
|
5 //////////////////////////////////////////////////////////////////////////////
|
|
6 // OSTC - diving computer code
|
|
7 // Copyright (C) 2008 HeinrichsWeikamp GbR
|
|
8 //
|
|
9 // This program is free software: you can redistribute it and/or modify
|
|
10 // it under the terms of the GNU General Public License as published by
|
|
11 // the Free Software Foundation, either version 3 of the License, or
|
|
12 // (at your option) any later version.
|
|
13 //
|
|
14 // This program is distributed in the hope that it will be useful,
|
|
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17 // GNU General Public License for more details.
|
|
18 //
|
|
19 // You should have received a copy of the GNU General Public License
|
|
20 // along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21 //
|
|
22 //////////////////////////////////////////////////////////////////////////////
|
|
23 // history:
|
|
24 // 2010-12-25 v110: [jDG] split in three files (deco.c, main.c, definitions.h)
|
|
25
|
|
26
|
|
27 #define MBAR_REACH_GASCHANGE_AUTO_CHANGE_OFF 150
|
|
28
|
|
29 // *************************
|
|
30 // ** P R O T O T Y P E S **
|
|
31 // *************************
|
|
32
|
|
33 extern void calc_percentage(void);
|
|
34 extern void deco_calc_hauptroutine(void);
|
|
35 extern void deco_clear_tissue(void);
|
|
36 extern void deco_calc_percentage(void);
|
|
37 extern void deco_calc_wo_deco_step_1_min(void);
|
|
38 extern void deco_calc_dive_interval(void);
|
|
39 extern void deco_gradient_array(void);
|
|
40 extern void deco_calc_desaturation_time(void);
|
|
41 extern void deco_calc_CNS_fraction(void);
|
|
42 extern void deco_calc_CNS_planning(void);
|
|
43 extern void deco_clear_CNS_fraction(void);
|
|
44 extern void deco_push_tissues_to_vault(void);
|
|
45 extern void deco_pull_tissues_from_vault(void);
|
|
46
|
|
47 // ***********************************************
|
|
48 // ** Allow compile on VisualC **
|
|
49 // ***********************************************
|
|
50
|
|
51 #ifdef WIN32
|
|
52 // Some keywords just dont exists on Visual C++:
|
|
53 # define CROSS_COMPILE
|
|
54 # define __18CXX
|
|
55 # define ram
|
|
56 # define rom
|
|
57 # define overlay
|
|
58 # define PARAMETER
|
|
59
|
|
60 #include <assert.h>
|
|
61
|
|
62 // Avoid warnings about float/double mismatches:
|
|
63 # pragma warning(disable: 4244 4068 4305)
|
|
64 #else
|
|
65 # define PARAMETER static
|
|
66 # ifdef __DEBUG
|
|
67 # define assert(predicate) if( !(predicate) ) assert_failed(__LINE__)
|
|
68 # else
|
|
69 # define assert(predicate)
|
|
70 # endif
|
|
71 #endif
|
|
72
|
|
73 //////////////////////////////////////////////////////////////////////////////
|