comparison code_part1/OSTC_code_asm_part1/definitions.asm @ 647:e6ac142e82b0

New Diluent Submenu in Divemode
author heinrichsweikamp
date Sun, 07 Oct 2012 21:31:19 +0200
parents e755ed869a3b
children 9463a031490e
comparison
equal deleted inserted replaced
646:06ffc99a405f 647:e6ac142e82b0
332 332
333 cf_checker_counter res 1 ; counts custom functions to check for warning symbol 333 cf_checker_counter res 1 ; counts custom functions to check for warning symbol
334 334
335 char_I_O2_ratio res 1 ; 02 ratio 335 char_I_O2_ratio res 1 ; 02 ratio
336 336
337 active_gas res 1 ; Holds number of active gas 337 active_gas res 1 ; Holds number of active gas (1-5)
338 active_diluent res 1 ; Holds number of active diluent (1-5)
338 339
339 debug_char res 6 ; For debugmode 340 debug_char res 6 ; For debugmode
340 341
341 apnoe_mins res 1 ; single descent minutes for Apnoe mode 342 apnoe_mins res 1 ; single descent minutes for Apnoe mode
342 apnoe_secs res 1 ; single descent seconds for Apnoe mode 343 apnoe_secs res 1 ; single descent seconds for Apnoe mode
357 desaturation_time_buffer res 2 ; buffer for desat time 358 desaturation_time_buffer res 2 ; buffer for desat time
358 total_divetime_seconds res 2 ; counts dive seconds regardless of CF01 (18h max.) 359 total_divetime_seconds res 2 ; counts dive seconds regardless of CF01 (18h max.)
359 360
360 safety_stop_countdown res 1 ; counts seconds of safety stop 361 safety_stop_countdown res 1 ; counts seconds of safety stop
361 better_gas_number res 1 ; number (1-5) of the "better gas" in divemode, =0: no better gas available 362 better_gas_number res 1 ; number (1-5) of the "better gas" in divemode, =0: no better gas available
363
362 364
363 ASSERT_BANK1 MACRO tag 365 ASSERT_BANK1 MACRO tag
364 Ifdef __DEBUG 366 Ifdef __DEBUG
365 local @end 367 local @end
366 movlw 1 368 movlw 1
548 #DEFINE depth_greater_100m flag13,5 ;=1: Depth is greater then 100m 550 #DEFINE depth_greater_100m flag13,5 ;=1: Depth is greater then 100m
549 #DEFINE display_set_setpoint flag13,6 ;=1: SetPoint list active 551 #DEFINE display_set_setpoint flag13,6 ;=1: SetPoint list active
550 #DEFINE toggle_customview flag13,7 ;=1: Next customview 552 #DEFINE toggle_customview flag13,7 ;=1: Next customview
551 553
552 #DEFINE enter_error_sleep flag14,0 ;=1: Sleep immediately displaying the error using LED codes 554 #DEFINE enter_error_sleep flag14,0 ;=1: Sleep immediately displaying the error using LED codes
553 #DEFINE nsm flag14,1 ;=1: Do not sleep 555 #DEFINE display_set_diluent flag14,1 ;=1: Diluent list active
554 #DEFINE is_bailout flag14,2 ;=1: CC mode, but bailout active! 556 #DEFINE is_bailout flag14,2 ;=1: CC mode, but bailout active!
555 #DEFINE standalone_simulator flag14,3 ;=1: Standalone Simulator active 557 #DEFINE standalone_simulator flag14,3 ;=1: Standalone Simulator active
556 #DEFINE display_set_simulator flag14,4 ;=1: Show Divemode simulator menu 558 #DEFINE display_set_simulator flag14,4 ;=1: Show Divemode simulator menu
557 #DEFINE displaytext_high flag14,5 ;=1: Show/Use Texts 255-511 in Texttable 559 #DEFINE displaytext_high flag14,5 ;=1: Show/Use Texts 255-511 in Texttable
558 #DEFINE better_gas_available flag14,6 ;=1: A better gas is available and a gas change is advised in divemode 560 #DEFINE better_gas_available flag14,6 ;=1: A better gas is available and a gas change is advised in divemode