comparison src/configuration.inc @ 628:cd58f7fc86db

3.05 stable work
author heinrichsweikamp
date Thu, 19 Sep 2019 12:01:29 +0200
parents c40025d8e750
children 237931377539
comparison
equal deleted inserted replaced
627:bf5fee575701 628:cd58f7fc86db
1 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 1 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2 ; ============================================================================ 2 ; ============================================================================
3 ; 3 ;
4 ; File configuration.inc combined next generation V3.03.4 4 ; File configuration.inc combined next generation V3.04.3
5 ; 5 ;
6 ; OSTC hwOS Configuration 6 ; OSTC hwOS Configuration
7 ; 7 ;
8 ; Copyright (c) 2019, HeinrichsWeikamp, all rights reserved. 8 ; Copyright (c) 2019, HeinrichsWeikamp, all rights reserved.
9 ; ============================================================================ 9 ; ============================================================================
22 ; NOTE: all values need to be defined in hex! 22 ; NOTE: all values need to be defined in hex!
23 ; 23 ;
24 #endif 24 #endif
25 25
26 #define softwareversion_x 0x03 26 #define softwareversion_x 0x03
27 #define softwareversion_y 0x03 27 #define softwareversion_y 0x05
28 #define softwareversion_beta 0x01 28 #define softwareversion_beta 0x00
29 29
30 30
31 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 31 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
32 ; 32 ;
33 ; Firmware Creation and Expiration Date 33 ; Firmware Creation and Expiration Date
41 ; NOTE: all values need to be defined in hex! 41 ; NOTE: all values need to be defined in hex!
42 ; 42 ;
43 #endif 43 #endif
44 44
45 #define firmware_creation_year 0x13 45 #define firmware_creation_year 0x13
46 #define firmware_creation_month 0x04 46 #define firmware_creation_month 0x08
47 #define firmware_creation_day 0x0d 47 #define firmware_creation_day 0x0a
48 48
49 #define firmware_expire_year 0x13 49 #define firmware_expire_year 0x14
50 #define firmware_expire_month 0x08 50 #define firmware_expire_month 0x0a
51 #define firmware_expire_day 0x1e 51 #define firmware_expire_day 0x1f
52 52
53 53
54 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 54 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
55 ; 55 ;
56 ; global Version Selection 56 ; global Version Selection
57 ; ------------------------ 57 ; ------------------------
58 ; 58 ;
59 ; _hwos_tech_2_TR compile hwOS in Tech version for OSTC 2, Plus and TR (with RX functions) 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 hwOS in Tech version for OSTC 3 and cR (with external sensors) 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_tech compile hwOS in Tech version for all models (does not fit yet) 61 ; _hwos_sport compile Sport version for all models (2 languages possible) memory: 115.764 used, 7.174 free (with 1 language only)
62 ; _hwos_sport compile hwos in Sport version 62 #endif
63 ; 63
64 #endif 64 #define _hwos_tech_3_cR
65
66 #define _hwos_tech_2_TR
67 65
68 66
69 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 67 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
70 ; 68 ;
71 ; Language Selection 69 ; Language Selection
72 ; ------------------ 70 ; ------------------
73 ; 71 ;
74 ; _language_1 first or single language, 72 ; _language_1 first or single language,
75 ; set to 'en', 'de', 'fr', or 'it', defaults to 'en' 73 ; set to 'en', 'de', 'fr', or 'it', defaults to 'en'
76 ; 74 ;
77 ; _language_2 second language, coding as above or 'none' mem: approx. 3854 byte in Sport version 75 ; _language_2 second language, coding as above or 'none' mem: approx. 4.0 kbyte in Sport, 4.228 kbyte in Tech
78 ; 76 ;
79 #endif 77 #endif
80 78
81 #define _language_1 de 79 #define _language_1 en
82 #define _language_2 none 80 #define _language_2 de
83 81
84 82
85 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 83 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
86 ; 84 ;
87 ; Features Selection 85 ; Features Selection
88 ; ------------------ 86 ; ------------------
89 ; 87 ;
90 ; _screendump screen dump function mem: 334 byte, default: Sport: included, Tech: included 88 ; _screendump screen dump function mem: 338 byte
91 ; _compass compass function mem: 12.488 byte, default: Sport: included, Tech: included 89 ; _compass compass function mem: 10.488 byte
92 ; _rx_functions RX functions (OSTC TR) mem: 7.942 byte, default: Sport: included, Tech: included 90 ; _rx_functions RX functions (OSTC TR) mem: 4.886 byte
93 ; _huge_font huge font mem: 3.651 byte, default: Sport: included, Tech: NOT included 91 ; _rx_update updates RX firmware 1) mem: 2.472 byte
94 ; _helium Helium (Trimix) gases and diluents mem: 2.172 byte, default: Sport: NOT included, Tech: included 92 ; _helium Helium (Trimix) gases and diluents mem: 2.182 byte
95 ; _ccr_pscr loop modes CCR and pSCR mem: 4.308 byte, default: Sport: NOT included, Tech: included 93 ; _ccr_pscr loop modes CCR and pSCR mem: 4.110 byte
96 ; _external_sensor external sensor for CCR & pSCR 1) mem: 3.640 byte, default: Sport: NOT included, Tech: included 94 ; _external_sensor external sensor for CCR & pSCR 2) mem: 3.452 byte
97 ; _cave_mode cave mode way-out calculation mem: byte, default: Sport: NOT included, Tech: included ## FEATURE IS UNDER CONSTRUCTION YET ## 95 ; _gauge_mode gauge mode mem: 30 byte when _not_ included
98 ; _min_depth_option resettable min. and max. depth mem: byte, default: Sport: NOT included, Tech: NOT included 96 ; _high_ppO2_max raised ppO2 max limit (2.0 bar) mem: 0 byte
99 ; _ostc_logo use of a bitmap-based OSTC logo mem: 1.748 byte, default: Sport: NOT included, Tech: NOT included 97 ; _cave_mode cave mode way-out calculation mem: byte ## under construction yet ##
100 ; 98 ; _min_depth_option resettable min. and max. depth mem: 394 byte ## special user group only ##
101 ; 1) needs to be excluded in case _ccr_pscr is excluded, too. 99 ; _gas_contingency continue deco on other gases mem: 452 byte ## special user group only ##
100 ;
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
102 ; 103 ;
103 ; NOTES: - Exclude options by prepending NOT_INCLUDED to the label. 104 ; NOTES: - Exclude options by prepending NOT_INCLUDED to the label.
104 ; - Not all options will fit concurrently if two languages are slected. 105 ; - Not all options will fit concurrently if two languages are slected.
105 ; - Option sizes are based on single language (english), will increase 106 ; - Option sizes are based on single language (english), will increase
106 ; with 2nd language and will differ slightly between languages. 107 ; with 2nd language and will differ slightly between languages.
109 110
110 #ifdef _hwos_tech_2_TR 111 #ifdef _hwos_tech_2_TR
111 112
112 #define _screendump 113 #define _screendump
113 #define _compass 114 #define _compass
114 #define _huge_font
115 #define _rx_functions 115 #define _rx_functions
116 #define _rx_update
116 #define _helium 117 #define _helium
117 #define _ccr_pscr 118 #define _ccr_pscr
119 #define _gauge_mode
120 #define _high_ppO2_max
118 121
119 122
120 #define NOT_INCLUDED_external_sensor 123 #define NOT_INCLUDED_external_sensor
121 #define NOT_INCLUDED_cave_mode 124 #define NOT_INCLUDED_cave_mode
122 #define NOT_INCLUDED_min_depth_option 125 #define NOT_INCLUDED_min_depth_option
123 #define NOT_INCLUDED_ostc_logo
124 126
125 #endif 127 #endif
126 128
127 129
128 #ifdef _hwos_tech_3_cR 130 #ifdef _hwos_tech_3_cR
129 131
130 #define _screendump 132 #define NOT_INCLUDED_screendump
131 #define _compass 133 #define _compass
132 #define _huge_font
133 #define _helium 134 #define _helium
134 #define _ccr_pscr 135 #define _ccr_pscr
135 #define _external_sensor 136 #define _external_sensor
137 #define _gauge_mode
138 #define _high_ppO2_max
139 #define _gas_contingency
136 140
137 #define NOT_INCLUDED_rx_functions 141 #define NOT_INCLUDED_rx_functions
142 #define NOT_INCLUDED_rx_update
138 #define NOT_INCLUDED_cave_mode 143 #define NOT_INCLUDED_cave_mode
139 #define NOT_INCLUDED_min_depth_option 144 #define NOT_INCLUDED_min_depth_option
140 #define NOT_INCLUDED_ostc_logo 145
141 146 #endif
142 #endif 147
143 148
144 149 #ifdef _hwos_sport
145 #ifdef _hwos_tech
146 150
147 #define _screendump 151 #define _screendump
148 #define _compass 152 #define _compass
149 #define _huge_font
150 #define _rx_functions 153 #define _rx_functions
151 #define _helium 154 #define _rx_update
152 #define _ccr_pscr
153 #define _external_sensor
154
155 #define NOT_INCLUDED_cave_mode
156 #define NOT_INCLUDED_min_depth_option
157 #define NOT_INCLUDED_ostc_logo
158
159 #endif
160
161
162 #ifdef _hwos_sport
163
164 #define _screendump
165 #define _compass
166 #define _huge_font
167 #define _rx_functions
168 #define NOT_INCLUDED_helium 155 #define NOT_INCLUDED_helium
169 #define NOT_INCLUDED_ccr_pscr 156 #define NOT_INCLUDED_ccr_pscr
170 #define NOT_INCLUDED_external_sensor 157 #define NOT_INCLUDED_external_sensor
171 158
159 #define NOT_INCLUDED_gauge_mode
160 #define NOT_INCLUDED_high_ppO2_max
172 #define NOT_INCLUDED_cave_mode 161 #define NOT_INCLUDED_cave_mode
173 #define NOT_INCLUDED_min_depth_option 162 #define NOT_INCLUDED_min_depth_option
174 #define NOT_INCLUDED_ostc_logo
175 163
176 #endif 164 #endif
177 165
178 166
179 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 167 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
190 #endif 178 #endif
191 179
192 #define NOT_INCLUDED_DEBUG 180 #define NOT_INCLUDED_DEBUG
193 #define NOT_INCLUDED_debug_output 181 #define NOT_INCLUDED_debug_output
194 #define NOT_INCLUDED_profiling 182 #define NOT_INCLUDED_profiling
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