comparison code_part1/OSTC_code_asm_part1/definitions.asm @ 98:6f8e3a08011e

1.73beta rc1 (Added new customview for divemode)
author heinrichsweikamp
date Sun, 12 Dec 2010 15:01:05 +0100
parents dc349e4264bb
children 526d2c016645
comparison
equal deleted inserted replaced
97:dc349e4264bb 98:6f8e3a08011e
144 144
145 draw_box_temp1 145 draw_box_temp1
146 draw_box_temp2 146 draw_box_temp2
147 draw_box_temp3 147 draw_box_temp3
148 148
149 flag1 ;Flag register 149 flag1 ;Flag register 33
150 flag2 150 flag2
151 flag3 151 flag3
152 flag4 152 flag4
153 flag5 ; has to be exacly here, is modified by c-code (no sensor int) 153 flag5 ; has to be exacly here, is modified by c-code (no sensor int)
154 flag6 154 flag6
187 187
188 timer1int_counter1 ;Timer 1 counter 188 timer1int_counter1 ;Timer 1 counter
189 timer1int_counter2 ;Timer 1 counter 189 timer1int_counter2 ;Timer 1 counter
190 190
191 uart1_temp ;RS232 temp variables 191 uart1_temp ;RS232 temp variables
192 uart2_temp 192 uart2_temp;70
193 193
194 divA:2 ;math routines 194 divA:2 ;math routines
195 divB 195 divB
196 xC:4 196 xC:4
197 xA:2 197 xA:2
205 clock_count 205 clock_count
206 ppO2_setpoint_store ; Actual setpoint 206 ppO2_setpoint_store ; Actual setpoint
207 W1:2 207 W1:2
208 W2:2 208 W2:2
209 W3:2 209 W3:2
210 W4:2 210 W4:2 ;100
211 C1:2 211 C1:2
212 C2:2 212 C2:2
213 C3:2 213 C3:2
214 C3_temp:2 214 C3_temp:2
215 C4:2 215 C4:2
271 timeout_counter2 271 timeout_counter2
272 timeout_counter3 ;pre-menu timeout counter 272 timeout_counter3 ;pre-menu timeout counter
273 273
274 menupos ;cursor position 274 menupos ;cursor position
275 menupos2 275 menupos2
276 menupos3 276 menupos3 ;used in Logbook, Set Time and divemode
277 277
278 eeprom_address:2 ;external EEPROM 278 eeprom_address:2 ;external EEPROM
279 eeprom_header_address:2 279 eeprom_header_address:2
280 280
281 divenumber ;Logbook 281 divenumber ;Logbook
282 282
283 batt_voltage:2 ;Battery voltage in mV 283 batt_voltage:2 ;Battery voltage in mV
284 284
285 i2c_temp ;I²C timeout counter 285 i2c_temp ;I²C timeout counter
286 i2c_temp2 286 i2c_temp2;200
287 287
288 sim_pressure:2 ; hold simulated pressure in mBar if in Simulator mode 288 sim_pressure:2 ; hold simulated pressure in mBar if in Simulator mode
289 289
290 profile_temp:2 ; temp variable for profile view 290 profile_temp:2 ; temp variable for profile view
291 profile_temp2:2 ; temp variable for profile view 291 profile_temp2:2 ; temp variable for profile view
640 #DEFINE multi_gf_display flag13,2 ;=1: Display the Multi-GF screen instead of normal divemode screen 640 #DEFINE multi_gf_display flag13,2 ;=1: Display the Multi-GF screen instead of normal divemode screen
641 #DEFINE deco_mode_changed flag13,3 ;=1: The Decomode was changes, show decomode description! 641 #DEFINE deco_mode_changed flag13,3 ;=1: The Decomode was changes, show decomode description!
642 #DEFINE pled_velocity_display flag13,4 ;=1: Velocity is displayed 642 #DEFINE pled_velocity_display flag13,4 ;=1: Velocity is displayed
643 #DEFINE depth_greater_100m flag13,5 ;=1: Depth is greater then 100m 643 #DEFINE depth_greater_100m flag13,5 ;=1: Depth is greater then 100m
644 #DEFINE display_set_setpoint flag13,6 ;=1: SetPoint list active 644 #DEFINE display_set_setpoint flag13,6 ;=1: SetPoint list active
645 #DEFINE divemode_menu_page flag13,7 ;=1: Use 2nd Page of Divemode Menu 645 #DEFINE toggle_customview flag13,7 ;=1: Next customview
646 646
647 #DEFINE enter_error_sleep flag14,0 ;=1: Sleep immediately displaying the error using LED codes 647 #DEFINE enter_error_sleep flag14,0 ;=1: Sleep immediately displaying the error using LED codes
648 #DEFINE stopwatch_active flag14,1 ;=1: Show Stopwatch in Divemode 648 #DEFINE stopwatch_active flag14,1 ;=1: Show Stopwatch in Divemode
649 #DEFINE is_bailout flag14,2 ;=1: CC mode, but bailout active! 649 #DEFINE is_bailout flag14,2 ;=1: CC mode, but bailout active!
650 #DEFINE standalone_simulator flag14,3 ;=1: Standalone Simulator active 650 #DEFINE standalone_simulator flag14,3 ;=1: Standalone Simulator active
655 655
656 #DEFINE restore_deco_data flag15,0 ;=1: Restore Decodata after the dive from 0x380 buffer 656 #DEFINE restore_deco_data flag15,0 ;=1: Restore Decodata after the dive from 0x380 buffer
657 #DEFINE uart_store_tissue_data flag15,1 ;=1: Store tissue data for next simualted dive! 657 #DEFINE uart_store_tissue_data flag15,1 ;=1: Store tissue data for next simualted dive!
658 #DEFINE pre_dive_screen flag15,2 ;=1: Show predive screen instead of graphs 658 #DEFINE pre_dive_screen flag15,2 ;=1: Show predive screen instead of graphs
659 #DEFINE blinking_better_gas flag15,3 ;=1: Gas is currently blinking 659 #DEFINE blinking_better_gas flag15,3 ;=1: Gas is currently blinking
660 #DEFINE display_see_l_tissue flag15,4 ;=1: Leading Tissue details are now displayed 660 #DEFINE menu3_active flag15,4 ;=1: menu entry three in divemode menu is active
661 #DEFINE lock_stopwatch_reset flag15,5 ;=1: Locks the Reset of the Stopwtach/Average depth for 1 second 661 #DEFINE lock_stopwatch_reset flag15,5 ;=1: Locks the Reset of the Stopwtach/Average depth for 1 second
662 #DEFINE maxdepth_greater_100m flag15,6 ;=1: Max Depth greater>100m 662 #DEFINE maxdepth_greater_100m flag15,6 ;=1: Max Depth greater>100m
663 #DEFINE show_interval flag15,7 ;=1: Show Interval, =0: Show Clock in Surfacemode 663 #DEFINE show_interval flag15,7 ;=1: Show Interval, =0: Show Clock in Surfacemode
664 664