comparison code_part1/OSTC_code_asm_part1/definitions.asm @ 517:a73a452ca155

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