623
|
1 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
2 ; ============================================================================
|
|
3 ;
|
629
|
4 ; File configuration.inc combined next generation V3.06.2
|
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 ;
|
|
18 ; softwareversion_x firmware version, major (1 - 9)
|
|
19 ; softwareversion_y firmware version, minor (0 - 99)
|
|
20 ; softwareversion_beta 0= Release, 1= Beta 1, 2= Beta 2, ... (0 - 255)
|
|
21 ;
|
|
22 ; NOTE: all values need to be defined in hex!
|
|
23 ;
|
|
24 #endif
|
|
25
|
|
26 #define softwareversion_x 0x03
|
630
|
27 #define softwareversion_y 0x08
|
628
|
28 #define softwareversion_beta 0x00
|
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
|
|
45 #define firmware_creation_year 0x13
|
628
|
46 #define firmware_creation_month 0x08
|
|
47 #define firmware_creation_day 0x0a
|
623
|
48
|
628
|
49 #define firmware_expire_year 0x14
|
|
50 #define firmware_expire_month 0x0a
|
|
51 #define firmware_expire_day 0x1f
|
623
|
52
|
|
53
|
|
54 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
55 ;
|
|
56 ; global Version Selection
|
|
57 ; ------------------------
|
|
58 ;
|
628
|
59 ; _hwos_tech_2_TR compile Tech version for OSTC 2, Plus and TR (1 language only ) memory: 122.054 used, 884 free
|
|
60 ; _hwos_tech_3_cR compile Tech version for OSTC 3 and cR (2 languages possible) memory: 118.148 used, 4.790 free (with 1 language only)
|
|
61 ; _hwos_sport compile Sport version for all models (2 languages possible) memory: 115.764 used, 7.174 free (with 1 language only)
|
623
|
62 #endif
|
|
63
|
628
|
64 #define _hwos_tech_3_cR
|
623
|
65
|
|
66
|
|
67 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
68 ;
|
|
69 ; Language Selection
|
|
70 ; ------------------
|
|
71 ;
|
|
72 ; _language_1 first or single language,
|
|
73 ; set to 'en', 'de', 'fr', or 'it', defaults to 'en'
|
|
74 ;
|
628
|
75 ; _language_2 second language, coding as above or 'none' mem: approx. 4.0 kbyte in Sport, 4.228 kbyte in Tech
|
623
|
76 ;
|
|
77 #endif
|
|
78
|
630
|
79 #define _language_1 en
|
|
80 #define _language_2 de
|
623
|
81
|
|
82
|
|
83 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
84 ;
|
|
85 ; Features Selection
|
|
86 ; ------------------
|
|
87 ;
|
628
|
88 ; _screendump screen dump function mem: 338 byte
|
|
89 ; _compass compass function mem: 10.488 byte
|
|
90 ; _rx_functions RX functions (OSTC TR) mem: 4.886 byte
|
|
91 ; _rx_update updates RX firmware 1) mem: 2.472 byte
|
|
92 ; _helium Helium (Trimix) gases and diluents mem: 2.182 byte
|
|
93 ; _ccr_pscr loop modes CCR and pSCR mem: 4.110 byte
|
|
94 ; _external_sensor external sensor for CCR & pSCR 2) mem: 3.452 byte
|
|
95 ; _gauge_mode gauge mode mem: 30 byte when _not_ included
|
|
96 ; _high_ppO2_max raised ppO2 max limit (2.0 bar) mem: 0 byte
|
|
97 ; _cave_mode cave mode way-out calculation mem: byte ## under construction yet ##
|
|
98 ; _min_depth_option resettable min. and max. depth mem: 394 byte ## special user group only ##
|
|
99 ; _gas_contingency continue deco on other gases mem: 452 byte ## special user group only ##
|
623
|
100 ;
|
628
|
101 ; 1) needs _rx_functions to be included, too / can not be included without _rx_functions
|
|
102 ; 2) needs _ccr_pscr to be included, too / can not be included without _ccr_pscr
|
623
|
103 ;
|
|
104 ; NOTES: - Exclude options by prepending NOT_INCLUDED to the label.
|
|
105 ; - Not all options will fit concurrently if two languages are slected.
|
|
106 ; - Option sizes are based on single language (english), will increase
|
|
107 ; with 2nd language and will differ slightly between languages.
|
|
108 #endif
|
|
109
|
|
110
|
|
111 #ifdef _hwos_tech_2_TR
|
|
112
|
|
113 #define _screendump
|
|
114 #define _compass
|
|
115 #define _rx_functions
|
628
|
116 #define _rx_update
|
623
|
117 #define _helium
|
|
118 #define _ccr_pscr
|
628
|
119 #define _gauge_mode
|
|
120 #define _high_ppO2_max
|
623
|
121
|
|
122
|
|
123 #define NOT_INCLUDED_external_sensor
|
|
124 #define NOT_INCLUDED_cave_mode
|
|
125 #define NOT_INCLUDED_min_depth_option
|
|
126
|
|
127 #endif
|
|
128
|
|
129
|
|
130 #ifdef _hwos_tech_3_cR
|
|
131
|
628
|
132 #define NOT_INCLUDED_screendump
|
623
|
133 #define _compass
|
|
134 #define _helium
|
|
135 #define _ccr_pscr
|
|
136 #define _external_sensor
|
628
|
137 #define _gauge_mode
|
|
138 #define _high_ppO2_max
|
|
139 #define _gas_contingency
|
623
|
140
|
|
141 #define NOT_INCLUDED_rx_functions
|
628
|
142 #define NOT_INCLUDED_rx_update
|
623
|
143 #define NOT_INCLUDED_cave_mode
|
|
144 #define NOT_INCLUDED_min_depth_option
|
|
145
|
|
146 #endif
|
|
147
|
|
148
|
|
149 #ifdef _hwos_sport
|
|
150
|
|
151 #define _screendump
|
|
152 #define _compass
|
|
153 #define _rx_functions
|
628
|
154 #define _rx_update
|
623
|
155 #define NOT_INCLUDED_helium
|
|
156 #define NOT_INCLUDED_ccr_pscr
|
|
157 #define NOT_INCLUDED_external_sensor
|
|
158
|
628
|
159 #define NOT_INCLUDED_gauge_mode
|
|
160 #define NOT_INCLUDED_high_ppO2_max
|
623
|
161 #define NOT_INCLUDED_cave_mode
|
|
162 #define NOT_INCLUDED_min_depth_option
|
|
163
|
|
164 #endif
|
|
165
|
|
166
|
|
167 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
168 ;
|
|
169 ; Debug Modes
|
|
170 ; -----------
|
|
171 ;
|
|
172 ; _DEBUG put firmware in a global debug mode default: not included
|
|
173 ; _debug_output debug outputs (for performance) default: not included
|
|
174 ; _profiling deco engine performance measurements default: not included
|
|
175 ;
|
|
176 ; NOTE: - Exclude options by prepending NOT_INCLUDED to the label.
|
|
177 ;
|
|
178 #endif
|
|
179
|
|
180 #define NOT_INCLUDED_DEBUG
|
|
181 #define NOT_INCLUDED_debug_output
|
|
182 #define NOT_INCLUDED_profiling
|
628
|
183
|
|
184
|
|
185
|
|
186
|
|
187
|
|
188 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
189 ;
|
|
190 ; Software Configuration
|
|
191 ;
|
|
192 #endif
|
|
193
|
|
194 #ifdef _screendump
|
|
195 #define SW_CONF_1 0x01
|
|
196 #else
|
|
197 #define SW_CONF_1 0x00
|
|
198 #endif
|
|
199
|
|
200 #ifdef _compass
|
|
201 #define SW_CONF_2 0x02
|
|
202 #else
|
|
203 #define SW_CONF_2 0x00
|
|
204 #endif
|
|
205
|
|
206 #ifdef _rx_functions
|
|
207 #define SW_CONF_3 0x04
|
|
208 #else
|
|
209 #define SW_CONF_3 0x00
|
|
210 #endif
|
|
211
|
|
212 #ifdef _rx_update
|
|
213 #define SW_CONF_4 0x08
|
|
214 #else
|
|
215 #define SW_CONF_4 0x00
|
|
216 #endif
|
|
217
|
|
218 #ifdef _helium
|
|
219 #define SW_CONF_5 0x10
|
|
220 #else
|
|
221 #define SW_CONF_5 0x00
|
|
222 #endif
|
|
223
|
|
224 #ifdef _ccr_pscr
|
|
225 #define SW_CONF_6 0x20
|
|
226 #else
|
|
227 #define SW_CONF_6 0x00
|
|
228 #endif
|
|
229
|
|
230 #ifdef _external_sensor
|
|
231 #define SW_CONF_7 0x40
|
|
232 #else
|
|
233 #define SW_CONF_7 0x00
|
|
234 #endif
|
|
235
|
|
236 #ifdef _cave_mode
|
|
237 #define SW_CONF_8 0x80
|
|
238 #else
|
|
239 #define SW_CONF_8 0x00
|
|
240 #endif
|
|
241
|
|
242 #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
|