annotate src/p2_definitions.h @ 276:e4cb495aed3d

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