diff src/tft_outputs.inc @ 582:b455b31ce022

work on 2.97 stable
author heinrichsweikamp
date Mon, 26 Feb 2018 16:40:28 +0100
parents b7eb98dbd800
children ca4556fb60b9
line wrap: on
line diff
--- a/src/tft_outputs.inc	Sun Feb 25 18:25:38 2018 +0100
+++ b/src/tft_outputs.inc	Mon Feb 26 16:40:28 2018 +0100
@@ -1,6 +1,6 @@
 ;=============================================================================
 ;
-;   File tft_outputs.inc							REFACTORED VERSION	V2.94
+;   File tft_outputs.inc							REFACTORED VERSION	V2.97
 ;
 ;
 ;   Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved.
@@ -8,41 +8,34 @@
 ; HISTORY
 ;  2011-08-07 : [mH] moving from OSTC code
 
-; Macros
-	extern	TFT_color_code1
-TFT_color_code macro color_code_temp
-	movlw	color_code_temp
-	call	TFT_color_code1
-	endm
-
 ; Surface mode
 	extern	TFT_surface_lastdive
-    extern  TFT_show_OC_startgas_surface   		; Show first gas and "OSTC2-like" active gases
+	extern	TFT_show_OC_startgas_surface		; Show first gas and "OSTC2-like" active gases
 	extern	TFT_serial
 	extern	TFT_clock
 	extern	TFT_date
 	extern	TFT_desaturation_time
 	extern	TFT_nofly_time
 	extern	TFT_gaslist_surfmode
-    extern  TFT_dillist_surfmode
-    extern  TFT_splist_surfmode             	; Show Setpoint list
+	extern	TFT_dillist_surfmode
+	extern	TFT_splist_surfmode					; Show Setpoint list
 	extern	TFT_temp_surfmode
 	extern	TFT_update_batt_voltage
 	extern	TFT_display_decotype_surface
-    extern  TFT_display_decotype_surface1   	; Used from logbook!
+	extern	TFT_display_decotype_surface1		; Used from logbook!
 	extern	TFT_update_surf_press
-    extern  TFT_surface_sensor             		; Update HUD data in surface mode
-    extern  TFT_sensor_surface_warning
-    extern  TFT_menu_calibrate               	; Update mV data in menu
-    extern  TFT_custom_text             		; The custom text
-    extern  TFT_surface_tissues         		; Show Tissue diagram in surface mode
-    extern  TFT_surface_decosettings    		; Show all deco settings
-    extern  TFT_cat_serial              		; Add serial to current string
-    extern  TFT_cat_firmware            		; Add firmware version to current string
+	extern	TFT_surface_sensor					; Update HUD data in surface mode
+	extern	TFT_sensor_surface_warning
+	extern	TFT_menu_calibrate					; Update mV data in menu
+	extern	TFT_custom_text						; The custom text
+	extern	TFT_surface_tissues					; Show Tissue diagram in surface mode
+	extern	TFT_surface_decosettings			; Show all deco settings
+	extern	TFT_cat_serial						; Add serial to current string
+	extern	TFT_cat_firmware					; Add firmware version to current string
 
 ; Menu
 	extern	TFT_LogOffset_Logtitle
-    extern  TFT_show_color_schemes      		; Yes, update the color schemes
+	extern	TFT_show_color_schemes				; Yes, update the color schemes
 
 ; Dive mode
 	extern	TFT_display_cns
@@ -69,36 +62,36 @@
 	extern	TFT_display_apnoe_surface
 	extern	TFT_display_apnoe_last_max
 	extern	TFT_display_ftts
-    extern  TFT_clear_warning_text
-    extern  TFT_clear_warning_text_2nd_row
-    extern  TFT_warning_gf
-    extern  TFT_update_ppo2_sensors             ; Update Sensor data
-    extern  TFT_hud_mask                        ; The HUD mask
-    extern  TFT_mask_avr_stopwatch              ; Show mask for average depth and stopwatch
-    extern  TFT_update_avr_stopwatch            ; Update average depth and stopwatch
-    extern  TFT_decoplan                        ; Decoplan
-    extern  TFT_clear_divemode_menu             ; Clear the divemode menu
-    extern  TFT_draw_gassep_line                ; Draw the gas separator grid line in spec mode only
-    extern  TFT_divemode_menu_cursor            ; the divemode cursor
-    extern  TFT_battinfo_tissues_clock_mask     ; Setup Mask
-    extern  TFT_battinfo_tissues_clock          ; Show EAD/END, Tissues and clock
-    extern  TFT_gf_mask                         ; Setup Mask
-    extern  TFT_gf_mask_cGF                     ; Setup Mask - current GF only
-    extern  TFT_gf_info                         ; Show GF informations
-    extern  TFT_warning_agf                     ; Show a warning if aGF is selected
-    extern  TFT_divetimeout                     ; Show timeout counter
-    extern  TFT_show_safety_stop                ; Show the safety stop
-    extern  TFT_clear_decoarea                  ; Cleanup deco area on screen
-    extern  TFT_ceiling_mask                    ; The ceiling mask
-    extern  TFT_ceiling                         ; Ceiling
-    extern  TFT_clear_safety_stop               ; Clear safety stop
-    extern  TFT_warning_fallback                ; Show fallback warning
-    extern  TFT_sensor_check_mask               ; Show ppO2 of O2 and Diluent mask
-    extern  TFT_sensor_check                    ; Show ppO2 of O2 and Diluent
-    extern  TFT_ppo2_ead_end_cns_mask			; Show ppO2, END/EAD and CNS mask
-    extern  TFT_ppo2_ead_end_cns				; Show ppO2, END/EAD and CNS
-    extern  TFT_pscr_info_mask					; Show ppO2, drop and lung ratio mask
-    extern  TFT_pscr_info						; Show ppO2, drop and lung ratio
+	extern	TFT_clear_warning_text
+	extern	TFT_clear_warning_text_2nd_row
+	extern	TFT_warning_gf
+	extern	TFT_update_ppo2_sensors				; Update Sensor data
+	extern	TFT_hud_mask						; The HUD mask
+	extern	TFT_mask_avr_stopwatch				; Show mask for average depth and stopwatch
+	extern	TFT_update_avr_stopwatch			; Update average depth and stopwatch
+	extern	TFT_decoplan						; Decoplan
+	extern	TFT_clear_divemode_menu				; Clear the divemode menu
+	extern	TFT_draw_gassep_line				; Draw the gas separator grid line in spec mode only
+	extern	TFT_divemode_menu_cursor			; the divemode cursor
+	extern	TFT_battinfo_tissues_clock_mask		; Setup Mask
+	extern	TFT_battinfo_tissues_clock			; Show EAD/END, Tissues and clock
+	extern	TFT_gf_mask							; Setup Mask
+	extern	TFT_gf_mask_cGF						; Setup Mask - current GF only
+	extern	TFT_gf_info							; Show GF informations
+	extern	TFT_warning_agf						; Show a warning if aGF is selected
+	extern	TFT_divetimeout						; Show timeout counter
+	extern	TFT_show_safety_stop				; Show the safety stop
+	extern	TFT_clear_decoarea					; Cleanup deco area on screen
+	extern	TFT_ceiling_mask					; The ceiling mask
+	extern	TFT_ceiling							; Ceiling
+	extern	TFT_clear_safety_stop				; Clear safety stop
+	extern	TFT_warning_fallback				; Show fallback warning
+	extern	TFT_sensor_check_mask				; Show ppO2 of O2 and Diluent mask
+	extern	TFT_sensor_check					; Show ppO2 of O2 and Diluent
+	extern	TFT_ppo2_ead_end_cns_mask			; Show ppO2, END/EAD and CNS mask
+	extern	TFT_ppo2_ead_end_cns				; Show ppO2, END/EAD and CNS
+	extern	TFT_pscr_info_mask					; Show ppO2, drop and lung ratio mask
+	extern	TFT_pscr_info						; Show ppO2, drop and lung ratio
 	extern	TFT_gas_needs_mask
 	extern	TFT_gas_needs
 	extern	TFT_warning_gas_needs_warn
@@ -115,23 +108,26 @@
 	extern	TFT_show_mode_divemode
 
 ; Misc
-    extern	TFT_standard_color
-    extern	TFT_disabled_color
-    extern	TFT_attention_color
-    extern	TFT_warnings_color
-    extern  TFT_divemask_color
-    extern	adjust_depth_with_salinity          ; computes salinity setting into lo:hi [mbar]
-    extern	adjust_depth_with_salinity_log      ; computes salinity setting (FROM WREG!) into lo:hi [mbar]
-    extern	TFT_convert_date_short
-    extern	TFT_convert_signed_16bit
-    extern	TFT_convert_date
-    extern	TFT_debug_output
-    extern	TFT_show_time_date_menu
-    extern	convert_mbar_to_feet   				; convert value in lo:hi from mbar to feet
-    extern	convert_celsius_to_fahrenheit		; convert value in lo:hi from celsius to fahrenheit
-    
+	extern	TFT_standard_color
+	extern	TFT_disabled_color
+	extern	TFT_attention_color
+	extern	TFT_warnings_color
+	extern	TFT_divemask_color
+	extern	adjust_depth_with_salinity			; computes salinity setting into lo:hi [mbar]
+	extern	adjust_depth_with_salinity_log		; computes salinity setting (FROM WREG!) into lo:hi [mbar]
+	extern	TFT_convert_date_short
+	extern	TFT_convert_signed_16bit
+	extern	TFT_convert_date
+	extern	TFT_debug_output
+	extern	TFT_show_time_date_menu
+	extern	convert_mbar_to_feet				; convert value in lo:hi from mbar to feet
+	extern	convert_celsius_to_fahrenheit		; convert value in lo:hi from celsius to fahrenheit
+	extern	TFT_color_code_gas
+	extern	TFT_color_code_gaslist
+	extern	TFT_color_code_cns
+
 ; Alt dive mode (aka Blind mode)
-    extern	TFT_divemins_alternative
-    extern	TFT_divemode_mask_alternative
-    extern	TFT_max_depth_alternative
-    extern	TFT_big_deco_alt	    			; The big deco
\ No newline at end of file
+	extern	TFT_divemins_alternative
+	extern	TFT_divemode_mask_alternative
+	extern	TFT_max_depth_alternative
+	extern	TFT_big_deco_alt					; The big deco