annotate src/configuration.inc @ 638:a3b21497d17e

Merge
author heinrichsweikamp
date Mon, 25 May 2020 17:36:50 +0200
parents 2737ddc643bb cdff88f5a4a0
children 0ff82370991d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
1 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
2 ; ============================================================================
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
3 ;
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
4 ; File configuration.inc * combined next generation V3.09.5
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
5 ;
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
6 ; OSTC hwOS Configuration
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
7 ;
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
8 ; Copyright (c) 2019, HeinrichsWeikamp, all rights reserved.
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
9 ; ============================================================================
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
10 #endif
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
11
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
12
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
13 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
14 ;
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
15 ; Firmware Version
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
16 ; ----------------
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
17 ;
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
18 ; fw_version_major firmware version, major (1 - 9)
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
19 ; fw_version_minor firmware version, minor (0 - 99)
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
20 ; fw_version_beta 0= Release, 1= Beta 1, 2= Beta 2, ... (0 - 99)
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
21 ;
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
22 ; NOTE: all values need to be defined in hex!
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
23 ;
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
24 #endif
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
25
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
26 #define fw_version_major 0x03
636
2737ddc643bb 3.11 release
heinrichsweikamp
parents: 635
diff changeset
27 #define fw_version_minor 0x0B
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
28 #define fw_version_beta 0x00
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
29
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
30
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
31 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
32 ;
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
33 ; Firmware Creation and Expiration Date
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
34 ; -------------------------------------
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
35 ;
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
36 ; firmware_creation_year/month/day will be used to initialize the RTC on reboot
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
37 ;
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
38 ; firmware_expire_year/month/day will be used to show firmware version in
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
39 ; "update Firmware" style after expiry date
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
40 ;
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
41 ; NOTE: all values need to be defined in hex!
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
42 ;
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
43 #endif
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
44
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
45 #define firmware_creation_year 0x14
635
9a64914a8fca 3.10 re-release addressing some minor issues and language fixes
heinrichsweikamp
parents: 634
diff changeset
46 #define firmware_creation_month 0x05
636
2737ddc643bb 3.11 release
heinrichsweikamp
parents: 635
diff changeset
47 #define firmware_creation_day 0x19
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
48
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
49 #define firmware_expire_year 0x15
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
50 #define firmware_expire_month 0x02
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
51 #define firmware_expire_day 0x01
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
52
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
53
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
54 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
55 ;
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
56 ; global Version Selection
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
57 ; ------------------------
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
58 ;
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
59 ; _hwos_tech_2_TR compile Tech version for OSTC 2, Plus and TR en memory: 118.656 used, 4.224 free
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
60 ; _hwos_tech_2_TR_cave compile Tech version for OSTC 2, Plus and TR en memory: 120.883 used, 1.997 free
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
61 ; _hwos_tech_3_cR compile Tech version for OSTC 3 and cR en+de memory: 119.496 used, 3.384 free
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
62 ; _hwos_tech_3_cR_cave compile Tech version for OSTC 3 and cR en+de memory: 122.079 used, 801 free *
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
63 ; _hwos_sport compile Sport version for all models en+de memory: 116.365 used, 6.515 free
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
64 ; 122.880 max. available
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
65 #endif
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
66
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
67 #define _hwos_tech_3_cR
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
68
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
69
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
70 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
71 ;
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
72 ; Language Selection
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
73 ; ------------------
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
74 ;
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
75 ; _language_1 first or single language,
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
76 ; set to 'en', 'de', 'fr', or 'it', defaults to 'en'
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
77 ;
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
78 ; _language_2 second language, coding as above or 'none' mem: approx. 4.0 kB in Sport, 4.3 kB in Tech
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
79 ;
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
80 #endif
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
81
633
690c48db7b5b 3.09 beta 2 release
heinrichsweikamp
parents: 631
diff changeset
82 #define _language_1 en
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
83 #define _language_2 de
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
84
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
85
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
86 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
87 ;
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
88 ; Features Selection CODE SIZES ARE OUTDATED
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
89 ; ------------------
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
90 ; base code without any features, 1 language (en) mem: 93.964 byte
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
91 ; _compass compass function mem: + 10.404 byte
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
92 ; _helium helium (trimix) gases and diluents mem: + 2.113 byte || both together
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
93 ; _ccr_pscr CCR & pSCR modes, basic functionality mem: + 4.117 byte || + 6.250 byte
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
94 ; _external_sensor CCR & pSCR modes, external sensor support mem: + 3.343 byte
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
95 ; _gauge_mode gauge mode mem: - 28 byte (less)
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
96 ; _high_ppO2_max raised ppO2 max limit (2.0 bar) mem: 0 byte (neutral)
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
97 ; _rx_functions RX function (OSTC TR) mem: + 4.497 byte
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
98 ; _rx_update RX firmware update (OSTC TR) mem: + 2.282 byte (dependent on RX firmware size)
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
99 ; _gas_contingency auto-switch to alternative tanks on depleption mem: + 804 byte
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
100 ; _cave_mode cave mode return calculation mem: + 3.035 byte
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
101 ; _firmware_recovery means for backing up and restoring 2nd firmware mem: + 472 byte
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
102 ; _min_depth_option resettable min. and max. depth mem: + 4 byte ## special user group only ##
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
103 ; _screendump screen dump function mem: + 348 byte ## special user group only ##
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
104 ;
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
105 ;
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
106 ; NOTES: - exclude features by prepending NOT_INCLUDED to the label,
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
107 ; - sizes may be incorrect by a couple of bytes,
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
108 ; - not all features will fit concurrently at the same time or if two languages are slected,
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
109 ; - feature sizes are based on single language (english)
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
110 ; - feature sizes will increase with 2nd language and will differ slightly between languages,
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
111 ; - combinations of features will yield code sizes that differ
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
112 ; slightly from the simple sum of the individual sizes.
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
113 #endif
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
114
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
115
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
116 #ifdef _base_code
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
117
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
118 #define NOT_INCLUDED_compass
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
119 #define NOT_INCLUDED_helium
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
120 #define NOT_INCLUDED_ccr_pscr
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
121 #define NOT_INCLUDED_rx_functions
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
122 #define NOT_INCLUDED_rx_update
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
123 #define NOT_INCLUDED_gauge_mode
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
124 #define NOT_INCLUDED_high_ppO2_max
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
125 #define NOT_INCLUDED_gas_contingency
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
126 #define NOT_INCLUDED_external_sensor
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
127 #define NOT_INCLUDED_cave_mode
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
128 #define NOT_INCLUDED_firmware_recovery
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
129 #define NOT_INCLUDED_min_depth_option
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
130 #define NOT_INCLUDED_screendump
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
131
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
132 #endif
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
133
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
134
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
135 #ifdef _hwos_tech_2_TR
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
136
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
137 #define _compass
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
138 #define _helium
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
139 #define _ccr_pscr
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
140 #define _rx_functions
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
141 #define _rx_update
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
142 #define _gauge_mode
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
143 #define _high_ppO2_max
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
144 #define _gas_contingency
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
145 #define NOT_INCLUDED_external_sensor
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
146 #define NOT_INCLUDED_cave_mode
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
147 #define _firmware_recovery
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
148 #define NOT_INCLUDED_min_depth_option
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
149 #define NOT_INCLUDED_screendump
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
150
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
151 #endif
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
152
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
153
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
154 #ifdef _hwos_tech_2_TR_cave
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
155
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
156 #define _compass
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
157 #define _helium
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
158 #define _ccr_pscr
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
159 #define _rx_functions
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
160 #define _rx_update
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
161 #define _gauge_mode
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
162 #define _high_ppO2_max
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
163 #define _gas_contingency
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
164 #define NOT_INCLUDED_external_sensor
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
165 #define _cave_mode
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
166 #define _firmware_recovery
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
167 #define NOT_INCLUDED_min_depth_option
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
168 #define NOT_INCLUDED_screendump
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
169
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
170 #endif
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
171
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
172
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
173 #ifdef _hwos_tech_3_cR
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
174
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
175 #define _compass
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
176 #define _helium
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
177 #define _ccr_pscr
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
178 #define _gauge_mode
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
179 #define _high_ppO2_max
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
180 #define NOT_INCLUDED_rx_functions
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
181 #define NOT_INCLUDED_rx_update
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
182 #define _external_sensor
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
183 #define _gas_contingency
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
184 #define NOT_INCLUDED_cave_mode
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
185 #define _firmware_recovery
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
186 #define NOT_INCLUDED_min_depth_option
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
187 #define NOT_INCLUDED_screendump
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
188
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
189 #endif
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
190
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
191
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
192 #ifdef _hwos_tech_3_cR_cave
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
193
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
194 #define _compass
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
195 #define _helium
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
196 #define _ccr_pscr
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
197 #define _gauge_mode
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
198 #define _high_ppO2_max
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
199 #define NOT_INCLUDED_rx_functions
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
200 #define NOT_INCLUDED_rx_update
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
201 #define _external_sensor
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
202 #define _gas_contingency
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
203 #define _cave_mode
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
204 #define _firmware_recovery
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
205 #define NOT_INCLUDED_min_depth_option
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
206 #define NOT_INCLUDED_screendump
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
207
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
208 #endif
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
209
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
210
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
211 #ifdef _hwos_sport
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
212
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
213 #define _compass
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
214 #define _gas_contingency
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
215 #define NOT_INCLUDED_helium
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
216 #define NOT_INCLUDED_ccr_pscr
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
217 #define NOT_INCLUDED_gauge_mode
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
218 #define NOT_INCLUDED_high_ppO2_max
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
219 #define _rx_functions
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
220 #define _rx_update
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
221 #define NOT_INCLUDED_external_sensor
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
222 #define NOT_INCLUDED_cave_mode
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
223 #define _firmware_recovery
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
224 #define NOT_INCLUDED_min_depth_option
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
225 #define NOT_INCLUDED_screendump
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
226
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
227 #endif
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
228
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
229
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
230 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
231 ;
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
232 ; Debug Modes
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
233 ; -----------
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
234 ;
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
235 ; _DEBUG put firmware in a global debug mode default: not included
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
236 ; _profiling deco engine performance measurements default: not included
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
237 ; _debug_output performance outputs (for _profiling) default: not included
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
238 ; _comm_debug add run-time adjustable RX timeout default: not included
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
239 ; _rx_functions_debug switch to transmitter debug custom view default: not included
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
240 ;
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
241 ; NOTE: - Exclude options by prepending NOT_INCLUDED to the label
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
242 ;
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
243 #endif
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
244
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
245 #define NOT_INCLUDED_DEBUG
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
246 #define NOT_INCLUDED_profiling
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
247 #define NOT_INCLUDED_debug_output
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
248 #define NOT_INCLUDED_comm_debug
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
249 #define NOT_INCLUDED_rx_functions_debug
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
250
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
251
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
252 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
253 ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
254 ; Auto-Includes (serve functional dependencies)
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
255 ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
256 #endif
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
257
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
258 #ifdef _cave_mode
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
259 #ifndef _gas_contingency
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
260 #define _gas_contingency
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
261 #endif
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
262 #endif
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
263
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
264 #ifdef _rx_update
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
265 #ifndef _rx_functions
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
266 #define _rx_functions
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
267 #endif
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
268 #endif
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
269
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
270 #ifdef _external_sensor
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
271 #ifndef _ccr_pscr
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
272 #define _ccr_pscr
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
273 #endif
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
274 #endif
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
275
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
276
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
277 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
278 ;
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
279 ; Software Configuration
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
280 ;
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
281 #endif
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
282
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
283 #ifdef _screendump
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
284 #define FW_CONF_1 0x01
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
285 #else
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
286 #define FW_CONF_1 0x00
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
287 #endif
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
288
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
289 #ifdef _compass
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
290 #define FW_CONF_2 0x02
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
291 #else
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
292 #define FW_CONF_2 0x00
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
293 #endif
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
294
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
295 #ifdef _rx_functions
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
296 #define FW_CONF_3 0x04
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
297 #else
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
298 #define FW_CONF_3 0x00
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
299 #endif
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
300
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
301 #ifdef _rx_update
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
302 #define FW_CONF_4 0x08
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
303 #else
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
304 #define FW_CONF_4 0x00
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
305 #endif
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
306
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
307 #ifdef _helium
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
308 #define FW_CONF_5 0x10
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
309 #else
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
310 #define FW_CONF_5 0x00
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
311 #endif
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
312
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
313 #ifdef _ccr_pscr
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
314 #define FW_CONF_6 0x20
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
315 #else
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
316 #define FW_CONF_6 0x00
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
317 #endif
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
318
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
319 #ifdef _external_sensor
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
320 #define FW_CONF_7 0x40
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
321 #else
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
322 #define FW_CONF_7 0x00
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
323 #endif
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
324
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
325 #ifdef _cave_mode
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
326 #define FW_CONF_8 0x80
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
327 #else
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
328 #define FW_CONF_8 0x00
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
329 #endif
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
330
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
331 #define FW_CONF FW_CONF_1 + FW_CONF_2 + FW_CONF_3 + FW_CONF_4 + FW_CONF_5 + FW_CONF_6 + FW_CONF_7 + FW_CONF_8
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
332
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
333 #define FW_ID LOW( fw_version_major + fw_version_minor + fw_version_beta )