annotate src/configuration.inc @ 653:8bcd138ab744

add tools/o3pack.bat and the required tools/libs
author heinrichsweikamp
date Fri, 11 Aug 2023 15:53:49 +0200
parents 682c514c53c0
children 75e90cd0c2c3
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 ;
640
8c1f1f334275 3.13 release
heinrichsweikamp
parents: 639
diff changeset
4 ; File configuration.inc * combined next generation V3.12.3
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
651
682c514c53c0 3.21 release preparations
heinrichsweikamp
parents: 650
diff changeset
26 #define fw_version_major .3;0x03
682c514c53c0 3.21 release preparations
heinrichsweikamp
parents: 650
diff changeset
27 #define fw_version_minor .21;0x15
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
651
682c514c53c0 3.21 release preparations
heinrichsweikamp
parents: 650
diff changeset
45 #define firmware_creation_year .23;0x18
682c514c53c0 3.21 release preparations
heinrichsweikamp
parents: 650
diff changeset
46 #define firmware_creation_month .03;0x09
682c514c53c0 3.21 release preparations
heinrichsweikamp
parents: 650
diff changeset
47 #define firmware_creation_day .31;0x06
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
48
651
682c514c53c0 3.21 release preparations
heinrichsweikamp
parents: 650
diff changeset
49 #define firmware_expire_year .25;0x18
682c514c53c0 3.21 release preparations
heinrichsweikamp
parents: 650
diff changeset
50 #define firmware_expire_month .03;0x08
682c514c53c0 3.21 release preparations
heinrichsweikamp
parents: 650
diff changeset
51 #define firmware_expire_day .31;0x1C
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
651
682c514c53c0 3.21 release preparations
heinrichsweikamp
parents: 650
diff changeset
67 #define _hwos_tech_2_TR
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
651
682c514c53c0 3.21 release preparations
heinrichsweikamp
parents: 650
diff changeset
82 #define _language_1 de
650
bc214815deb2 3.19/10.75 release
heinrichsweikamp
parents: 649
diff changeset
83 #define _language_2 none
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
640
8c1f1f334275 3.13 release
heinrichsweikamp
parents: 639
diff changeset
101 ; _big_divemenu big font dive menu -- UNDER DEVELOPMENT YET
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
102 ; _firmware_recovery means for backing up and restoring 2nd firmware mem: + 472 byte
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
103 ; _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
104 ; _screendump screen dump function mem: + 348 byte ## special user group only ##
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
105 ;
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
106 ;
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
107 ; NOTES: - exclude features by prepending NOT_INCLUDED to the label,
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
108 ; - sizes may be incorrect by a couple of bytes,
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
109 ; - 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
110 ; - feature sizes are based on single language (english)
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
111 ; - feature sizes will increase with 2nd language and will differ slightly between languages,
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
112 ; - combinations of features will yield code sizes that differ
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
113 ; slightly from the simple sum of the individual sizes.
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
114 #endif
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
115
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
116
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
117 #ifdef _base_code
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
118
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
119 #define NOT_INCLUDED_compass
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
120 #define NOT_INCLUDED_helium
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
121 #define NOT_INCLUDED_ccr_pscr
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
122 #define NOT_INCLUDED_rx_functions
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
123 #define NOT_INCLUDED_rx_update
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
124 #define NOT_INCLUDED_gauge_mode
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
125 #define NOT_INCLUDED_high_ppO2_max
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
126 #define NOT_INCLUDED_gas_contingency
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
127 #define NOT_INCLUDED_external_sensor
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
128 #define NOT_INCLUDED_cave_mode
640
8c1f1f334275 3.13 release
heinrichsweikamp
parents: 639
diff changeset
129 #define NOT_INCLUDED_big_divemenu
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
130 #define NOT_INCLUDED_firmware_recovery
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
131 #define NOT_INCLUDED_min_depth_option
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
132 #define NOT_INCLUDED_screendump
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
133
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
134 #endif
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
135
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
136
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
137 #ifdef _hwos_tech_2_TR
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
138
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
139 #define _compass
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
140 #define _helium
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
141 #define _ccr_pscr
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
142 #define _rx_functions
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
143 #define _rx_update
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
144 #define _gauge_mode
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
145 #define _high_ppO2_max
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
146 #define _gas_contingency
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
147 #define NOT_INCLUDED_external_sensor
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
148 #define NOT_INCLUDED_cave_mode
643
7d8a4c60ec1a 3.15 release
heinrichsweikamp
parents: 640
diff changeset
149 #define _big_divemenu
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
150 #define _firmware_recovery
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
151 #define NOT_INCLUDED_min_depth_option
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
152 #define NOT_INCLUDED_screendump
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
153
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
154 #endif
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
155
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
156
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
157 #ifdef _hwos_tech_2_TR_cave
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
158
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
159 #define _compass
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
160 #define _helium
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
161 #define _ccr_pscr
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
162 #define _rx_functions
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
163 #define _rx_update
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
164 #define _gauge_mode
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
165 #define _high_ppO2_max
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
166 #define _gas_contingency
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
167 #define NOT_INCLUDED_external_sensor
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
168 #define _cave_mode
643
7d8a4c60ec1a 3.15 release
heinrichsweikamp
parents: 640
diff changeset
169 #define _big_divemenu
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
170 #define _firmware_recovery
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
171 #define NOT_INCLUDED_min_depth_option
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
172 #define NOT_INCLUDED_screendump
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
173
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
174 #endif
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
175
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
176
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
177 #ifdef _hwos_tech_3_cR
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
178
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
179 #define _compass
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
180 #define _helium
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
181 #define _ccr_pscr
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
182 #define _gauge_mode
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
183 #define _high_ppO2_max
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
184 #define NOT_INCLUDED_rx_functions
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
185 #define NOT_INCLUDED_rx_update
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
186 #define _external_sensor
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
187 #define _gas_contingency
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
188 #define NOT_INCLUDED_cave_mode
643
7d8a4c60ec1a 3.15 release
heinrichsweikamp
parents: 640
diff changeset
189 #define _big_divemenu
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
190 #define _firmware_recovery
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
191 #define NOT_INCLUDED_min_depth_option
640
8c1f1f334275 3.13 release
heinrichsweikamp
parents: 639
diff changeset
192 #define _screendump
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
193
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
194 #endif
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
195
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
196
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
197 #ifdef _hwos_tech_3_cR_cave
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
198
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
199 #define _compass
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
200 #define _helium
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
201 #define _ccr_pscr
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
202 #define _gauge_mode
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
203 #define _high_ppO2_max
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
204 #define NOT_INCLUDED_rx_functions
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
205 #define NOT_INCLUDED_rx_update
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
206 #define _external_sensor
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
207 #define _gas_contingency
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
208 #define _cave_mode
643
7d8a4c60ec1a 3.15 release
heinrichsweikamp
parents: 640
diff changeset
209 #define _big_divemenu
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
210 #define _firmware_recovery
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
211 #define NOT_INCLUDED_min_depth_option
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
212 #define NOT_INCLUDED_screendump
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
213
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
214 #endif
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
215
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
216
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
217 #ifdef _hwos_sport
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
218
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
219 #define _compass
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
220 #define _gas_contingency
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
221 #define NOT_INCLUDED_helium
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
222 #define NOT_INCLUDED_ccr_pscr
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
223 #define NOT_INCLUDED_gauge_mode
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
224 #define NOT_INCLUDED_high_ppO2_max
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
225 #define _rx_functions
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
226 #define _rx_update
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
227 #define NOT_INCLUDED_external_sensor
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
228 #define NOT_INCLUDED_cave_mode
643
7d8a4c60ec1a 3.15 release
heinrichsweikamp
parents: 640
diff changeset
229 #define _big_divemenu
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
230 #define _firmware_recovery
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
231 #define NOT_INCLUDED_min_depth_option
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
232 #define NOT_INCLUDED_screendump
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
233
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
234 #endif
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
235
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
236
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
237 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
238 ;
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
239 ; Debug Modes
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
240 ; -----------
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
241 ;
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
242 ; _DEBUG put firmware in a global debug mode default: not included
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
243 ; _profiling deco engine performance measurements default: not included
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
244 ; _debug_output performance outputs (for _profiling) default: not included
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
245 ; _comm_debug add run-time adjustable RX timeout default: not included
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
246 ; _rx_functions_debug switch to transmitter debug custom view default: not included
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
247 ;
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
248 ; NOTE: - Exclude options by prepending NOT_INCLUDED to the label
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
249 ;
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
250 #endif
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
251
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
252 #define NOT_INCLUDED_DEBUG
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
253 #define NOT_INCLUDED_profiling
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents:
diff changeset
254 #define NOT_INCLUDED_debug_output
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
255 #define NOT_INCLUDED_comm_debug
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
256 #define NOT_INCLUDED_rx_functions_debug
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
257
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
258
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
259 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
260 ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
261 ; Auto-Includes (serve functional dependencies)
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
262 ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
263 #endif
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
264
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
265 #ifdef _cave_mode
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
266 #ifndef _gas_contingency
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
267 #define _gas_contingency
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 #endif
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
270
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
271 #ifdef _rx_update
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
272 #ifndef _rx_functions
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
273 #define _rx_functions
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
274 #endif
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
275 #endif
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
276
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
277 #ifdef _external_sensor
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
278 #ifndef _ccr_pscr
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
279 #define _ccr_pscr
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
280 #endif
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 630
diff changeset
281 #endif
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
282
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
283
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
284 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
285 ;
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
286 ; Software Configuration
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
287 ;
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
288 #endif
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
289
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
290 #ifdef _screendump
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
291 #define FW_CONF_1 0x01
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
292 #else
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
293 #define FW_CONF_1 0x00
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
294 #endif
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
295
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
296 #ifdef _compass
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
297 #define FW_CONF_2 0x02
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
298 #else
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
299 #define FW_CONF_2 0x00
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
300 #endif
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
301
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
302 #ifdef _rx_functions
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
303 #define FW_CONF_3 0x04
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
304 #else
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
305 #define FW_CONF_3 0x00
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
306 #endif
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
307
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
308 #ifdef _rx_update
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
309 #define FW_CONF_4 0x08
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
310 #else
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
311 #define FW_CONF_4 0x00
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
312 #endif
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
313
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
314 #ifdef _helium
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
315 #define FW_CONF_5 0x10
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
316 #else
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
317 #define FW_CONF_5 0x00
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
318 #endif
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
319
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
320 #ifdef _ccr_pscr
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
321 #define FW_CONF_6 0x20
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
322 #else
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
323 #define FW_CONF_6 0x00
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
324 #endif
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
325
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
326 #ifdef _external_sensor
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
327 #define FW_CONF_7 0x40
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
328 #else
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
329 #define FW_CONF_7 0x00
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
330 #endif
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
331
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
332 #ifdef _cave_mode
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
333 #define FW_CONF_8 0x80
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
334 #else
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
335 #define FW_CONF_8 0x00
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
336 #endif
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
337
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
338 #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
339
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 633
diff changeset
340 #define FW_ID LOW( fw_version_major + fw_version_minor + fw_version_beta )