623
|
1 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
2 ; ============================================================================
|
|
3 ;
|
631
|
4 ; File configuration.inc combined next generation V3.08.8
|
623
|
5 ;
|
|
6 ; OSTC hwOS Configuration
|
|
7 ;
|
|
8 ; Copyright (c) 2019, HeinrichsWeikamp, all rights reserved.
|
|
9 ; ============================================================================
|
|
10 #endif
|
|
11
|
|
12
|
|
13 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
14 ;
|
|
15 ; Firmware Version
|
|
16 ; ----------------
|
|
17 ;
|
631
|
18 ; fw_version_major firmware version, major (1 - 9)
|
|
19 ; fw_version_minor firmware version, minor (0 - 99)
|
|
20 ; fw_version_beta 0= Release, 1= Beta 1, 2= Beta 2, ... (0 - 99)
|
623
|
21 ;
|
|
22 ; NOTE: all values need to be defined in hex!
|
|
23 ;
|
|
24 #endif
|
|
25
|
631
|
26 #define fw_version_major 0x03
|
|
27 #define fw_version_minor 0x09
|
|
28 #define fw_version_beta 0x01
|
623
|
29
|
|
30
|
|
31 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
32 ;
|
|
33 ; Firmware Creation and Expiration Date
|
|
34 ; -------------------------------------
|
|
35 ;
|
|
36 ; firmware_creation_year/month/day will be used to initialize the RTC on reboot
|
|
37 ;
|
|
38 ; firmware_expire_year/month/day will be used to show firmware version in
|
|
39 ; "update Firmware" style after expiry date
|
|
40 ;
|
|
41 ; NOTE: all values need to be defined in hex!
|
|
42 ;
|
|
43 #endif
|
|
44
|
631
|
45 #define firmware_creation_year 0x14
|
|
46 #define firmware_creation_month 0x02
|
|
47 #define firmware_creation_day 0x1C
|
623
|
48
|
631
|
49 #define firmware_expire_year 0x15
|
|
50 #define firmware_expire_month 0x01
|
|
51 #define firmware_expire_day 0x01
|
623
|
52
|
|
53
|
|
54 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
55 ;
|
|
56 ; global Version Selection
|
|
57 ; ------------------------
|
|
58 ;
|
631
|
59 ; _hwos_tech_2_TR compile Tech version for OSTC 2, Plus and TR (1 language en ) memory: 121.832 used, 1.048 free
|
|
60 ; _hwos_tech_3_cR compile Tech version for OSTC 3 and cR (2 languages en+de) memory: 122.074 used, 874 free
|
|
61 ; _hwos_sport compile Sport version for all models (2 languages en+de) memory: 119.192 used, 3.756 free
|
|
62 ; 122.880 max. available
|
623
|
63 #endif
|
|
64
|
628
|
65 #define _hwos_tech_3_cR
|
623
|
66
|
|
67
|
|
68 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
69 ;
|
|
70 ; Language Selection
|
|
71 ; ------------------
|
|
72 ;
|
|
73 ; _language_1 first or single language,
|
|
74 ; set to 'en', 'de', 'fr', or 'it', defaults to 'en'
|
|
75 ;
|
628
|
76 ; _language_2 second language, coding as above or 'none' mem: approx. 4.0 kbyte in Sport, 4.228 kbyte in Tech
|
623
|
77 ;
|
|
78 #endif
|
|
79
|
631
|
80 #define _language_1 de
|
|
81 #define _language_2 none
|
623
|
82
|
|
83
|
|
84 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
85 ;
|
|
86 ; Features Selection
|
|
87 ; ------------------
|
631
|
88 ; memory requirements not up-to-date!
|
|
89 ; _compass compass function mem: 10.488 byte
|
|
90 ; _helium helium (trimix) gases and diluents mem: 2.182 byte
|
|
91 ; _ccr_pscr CCR & pSCR modes, basic functionality mem: 4.110 byte
|
|
92 ; _external_sensor CCR & pSCR modes, external sensor support mem: 3.452 byte
|
|
93 ; _gauge_mode gauge mode mem: 30 byte when _not_ included
|
|
94 ; _high_ppO2_max raised ppO2 max limit (2.0 bar) mem: 0 byte
|
|
95 ; _rx_functions RX function (OSTC TR) mem: 4.886 byte
|
|
96 ; _rx_update RX firmware update (OSTC TR) mem: 2.472 byte
|
|
97 ; _cave_mode cave mode return calculation mem: 720 byte
|
|
98 ; _gas_contingency auto-switch to alternative tanks on depleption mem: 452 byte
|
|
99 ; _min_depth_option resettable min. and max. depth mem: 394 byte ## special user group only ##
|
|
100 ; _screendump screen dump function mem: 338 byte ## special user group only ##
|
623
|
101 ;
|
|
102 ;
|
|
103 ; NOTES: - Exclude options by prepending NOT_INCLUDED to the label.
|
|
104 ; - Not all options will fit concurrently if two languages are slected.
|
|
105 ; - Option sizes are based on single language (english), will increase
|
|
106 ; with 2nd language and will differ slightly between languages.
|
|
107 #endif
|
|
108
|
|
109
|
|
110 #ifdef _hwos_tech_2_TR
|
|
111
|
|
112 #define _compass
|
|
113 #define _helium
|
|
114 #define _ccr_pscr
|
631
|
115 #define _rx_functions
|
|
116 #define _rx_update
|
628
|
117 #define _gauge_mode
|
|
118 #define _high_ppO2_max
|
623
|
119 #define NOT_INCLUDED_external_sensor
|
|
120 #define NOT_INCLUDED_cave_mode
|
631
|
121 #define NOT_INCLUDED_gas_contingency
|
623
|
122 #define NOT_INCLUDED_min_depth_option
|
631
|
123 #define NOT_INCLUDED_screendump
|
623
|
124
|
|
125 #endif
|
|
126
|
|
127
|
|
128 #ifdef _hwos_tech_3_cR
|
|
129
|
|
130 #define _compass
|
|
131 #define _helium
|
|
132 #define _ccr_pscr
|
628
|
133 #define _gauge_mode
|
|
134 #define _high_ppO2_max
|
623
|
135 #define NOT_INCLUDED_rx_functions
|
628
|
136 #define NOT_INCLUDED_rx_update
|
631
|
137 #define _external_sensor
|
|
138 #define _cave_mode
|
|
139 #define _gas_contingency
|
|
140 #define NOT_INCLUDED_gas_contingency
|
623
|
141 #define NOT_INCLUDED_min_depth_option
|
631
|
142 #define NOT_INCLUDED_screendump
|
623
|
143
|
|
144 #endif
|
|
145
|
|
146
|
|
147 #ifdef _hwos_sport
|
|
148
|
|
149 #define _compass
|
631
|
150 #define _gas_contingency
|
623
|
151 #define NOT_INCLUDED_helium
|
|
152 #define NOT_INCLUDED_ccr_pscr
|
628
|
153 #define NOT_INCLUDED_gauge_mode
|
|
154 #define NOT_INCLUDED_high_ppO2_max
|
631
|
155 #define _rx_functions
|
|
156 #define _rx_update
|
|
157 #define NOT_INCLUDED_external_sensor
|
623
|
158 #define NOT_INCLUDED_cave_mode
|
631
|
159 #define NOT_INCLUDED_gas_contingency
|
623
|
160 #define NOT_INCLUDED_min_depth_option
|
631
|
161 #define NOT_INCLUDED_screendump
|
623
|
162
|
|
163 #endif
|
|
164
|
|
165
|
|
166 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
167 ;
|
|
168 ; Debug Modes
|
|
169 ; -----------
|
|
170 ;
|
|
171 ; _DEBUG put firmware in a global debug mode default: not included
|
|
172 ; _profiling deco engine performance measurements default: not included
|
631
|
173 ; _debug_output performance outputs (for _profiling) default: not included
|
623
|
174 ;
|
631
|
175 ; NOTE: - Exclude options by prepending NOT_INCLUDED to the label
|
623
|
176 ;
|
|
177 #endif
|
|
178
|
|
179 #define NOT_INCLUDED_DEBUG
|
631
|
180 #define NOT_INCLUDED_profiling
|
623
|
181 #define NOT_INCLUDED_debug_output
|
628
|
182
|
|
183
|
631
|
184 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
185 ;
|
|
186 ; Auto-Includes (serve functional dependencies)
|
|
187 ;
|
|
188 #endif
|
628
|
189
|
631
|
190 #ifdef _cave_mode
|
|
191 #ifndef _gas_contingency
|
|
192 #define _gas_contingency
|
|
193 #endif
|
|
194 #endif
|
|
195
|
|
196 #ifdef _rx_update
|
|
197 #ifndef _rx_functions
|
|
198 #define _rx_functions
|
|
199 #endif
|
|
200 #endif
|
|
201
|
|
202 #ifdef _external_sensor
|
|
203 #ifndef _ccr_pscr
|
|
204 #define _ccr_pscr
|
|
205 #endif
|
|
206 #endif
|
628
|
207
|
|
208
|
|
209 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
210 ;
|
|
211 ; Software Configuration
|
|
212 ;
|
|
213 #endif
|
|
214
|
|
215 #ifdef _screendump
|
|
216 #define SW_CONF_1 0x01
|
|
217 #else
|
|
218 #define SW_CONF_1 0x00
|
|
219 #endif
|
|
220
|
|
221 #ifdef _compass
|
|
222 #define SW_CONF_2 0x02
|
|
223 #else
|
|
224 #define SW_CONF_2 0x00
|
|
225 #endif
|
|
226
|
|
227 #ifdef _rx_functions
|
|
228 #define SW_CONF_3 0x04
|
|
229 #else
|
|
230 #define SW_CONF_3 0x00
|
|
231 #endif
|
|
232
|
|
233 #ifdef _rx_update
|
|
234 #define SW_CONF_4 0x08
|
|
235 #else
|
|
236 #define SW_CONF_4 0x00
|
|
237 #endif
|
|
238
|
|
239 #ifdef _helium
|
|
240 #define SW_CONF_5 0x10
|
|
241 #else
|
|
242 #define SW_CONF_5 0x00
|
|
243 #endif
|
|
244
|
|
245 #ifdef _ccr_pscr
|
|
246 #define SW_CONF_6 0x20
|
|
247 #else
|
|
248 #define SW_CONF_6 0x00
|
|
249 #endif
|
|
250
|
|
251 #ifdef _external_sensor
|
|
252 #define SW_CONF_7 0x40
|
|
253 #else
|
|
254 #define SW_CONF_7 0x00
|
|
255 #endif
|
|
256
|
|
257 #ifdef _cave_mode
|
|
258 #define SW_CONF_8 0x80
|
|
259 #else
|
|
260 #define SW_CONF_8 0x00
|
|
261 #endif
|
|
262
|
|
263 #define SW_CONF SW_CONF_1 + SW_CONF_2 + SW_CONF_3 + SW_CONF_4 + SW_CONF_5 + SW_CONF_6 + SW_CONF_7 + SW_CONF_8
|