comparison code_part1/OSTC_code_asm_part1/definitions.asm @ 516:b498245da3f1

imperial units patch from Vlad
author heinrichsweikamp
date Mon, 05 Dec 2011 20:40:10 +0100
parents cc09222a204f
children a73a452ca155
comparison
equal deleted inserted replaced
515:cc09222a204f 516:b498245da3f1
355 convert_value_temp res 3 ; used in menu_battery_state_convert_date 355 convert_value_temp res 3 ; used in menu_battery_state_convert_date
356 time_correction_value res 1 ; Adds to Seconds on midnight 356 time_correction_value res 1 ; Adds to Seconds on midnight
357 gaslist_active res 1 ; Holds flags for active gases 357 gaslist_active res 1 ; Holds flags for active gases
358 desaturation_time_buffer res 2 ; buffer for desat time 358 desaturation_time_buffer res 2 ; buffer for desat time
359 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.)
360 temp11 res 1 ; used for unit conversion
360 361
361 ;============================================================================= 362 ;=============================================================================
362 ; C-code Routines 363 ; C-code Routines
363 ; PART 2 364 ; PART 2
364 extern deco_calc_CNS_decrease_15min 365 extern deco_calc_CNS_decrease_15min
526 #DEFINE internal_eeprom_write2 flag13,0 ;=1: start routine to access internal EEPROM BANK 1 via the UART 527 #DEFINE internal_eeprom_write2 flag13,0 ;=1: start routine to access internal EEPROM BANK 1 via the UART
527 #DEFINE button_delay_done flag13,1 ;=1: Button was pressed for more then 500ms, start counting 528 #DEFINE button_delay_done flag13,1 ;=1: Button was pressed for more then 500ms, start counting
528 #DEFINE display_set_active flag13,2 ;=1: De/Activate gases underwater menu is visible 529 #DEFINE display_set_active flag13,2 ;=1: De/Activate gases underwater menu is visible
529 #DEFINE deco_mode_changed flag13,3 ;=1: The Decomode was changes, show decomode description! 530 #DEFINE deco_mode_changed flag13,3 ;=1: The Decomode was changes, show decomode description!
530 #DEFINE pled_velocity_display flag13,4 ;=1: Velocity is displayed 531 #DEFINE pled_velocity_display flag13,4 ;=1: Velocity is displayed
531 #DEFINE depth_greater_100m flag13,5 ;=1: Depth is greater then 100m 532 #DEFINE depth_greater_100 flag13,5 ;=1: Depth is greater then 100 units
532 #DEFINE display_set_setpoint flag13,6 ;=1: SetPoint list active 533 #DEFINE display_set_setpoint flag13,6 ;=1: SetPoint list active
533 #DEFINE toggle_customview flag13,7 ;=1: Next customview 534 #DEFINE toggle_customview flag13,7 ;=1: Next customview
534 535
535 #DEFINE enter_error_sleep flag14,0 ;=1: Sleep immediately displaying the error using LED codes 536 #DEFINE enter_error_sleep flag14,0 ;=1: Sleep immediately displaying the error using LED codes
536 #DEFINE nsm flag14,1 ;=1: Do not sleep 537 #DEFINE nsm flag14,1 ;=1: Do not sleep
545 #DEFINE uart_store_tissue_data flag15,1 ;=1: Store tissue data for next simualted dive! 546 #DEFINE uart_store_tissue_data flag15,1 ;=1: Store tissue data for next simualted dive!
546 #DEFINE reset_average_depth flag15,2 ;=1: Average Depth will be resetted 547 #DEFINE reset_average_depth flag15,2 ;=1: Average Depth will be resetted
547 #DEFINE blinking_better_gas flag15,3 ;=1: Gas is currently blinking 548 #DEFINE blinking_better_gas flag15,3 ;=1: Gas is currently blinking
548 #DEFINE menu3_active flag15,4 ;=1: menu entry three in divemode menu is active 549 #DEFINE menu3_active flag15,4 ;=1: menu entry three in divemode menu is active
549 #DEFINE no_deco_customviews flag15,5 ;=1: Selected mode is Apnoe or Gauge 550 #DEFINE no_deco_customviews flag15,5 ;=1: Selected mode is Apnoe or Gauge
550 #DEFINE maxdepth_greater_100m flag15,6 ;=1: Max Depth greater>100m 551 #DEFINE maxdepth_greater_100 flag15,6 ;=1: Max Depth greater>100 units
551 #DEFINE show_cns_in_logbook flag15,7 ;=1: Show CNS value in logbook (>= V1.84) 552 #DEFINE show_cns_in_logbook flag15,7 ;=1: Show CNS value in logbook (>= V1.84)
552 553
553 554