annotate src/surfmode.asm @ 623:c40025d8e750

3.03 beta released
author heinrichsweikamp
date Mon, 03 Jun 2019 14:01:48 +0200
parents 1ad0531e9078
children cd58f7fc86db
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
heinrichsweikamp
parents:
diff changeset
1 ;=============================================================================
heinrichsweikamp
parents:
diff changeset
2 ;
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
3 ; File surfmode.asm next combined generation V3.03.2
0
heinrichsweikamp
parents:
diff changeset
4 ;
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
5 ; Surface Mode
0
heinrichsweikamp
parents:
diff changeset
6 ;
heinrichsweikamp
parents:
diff changeset
7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved.
heinrichsweikamp
parents:
diff changeset
8 ;=============================================================================
heinrichsweikamp
parents:
diff changeset
9 ; HISTORY
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
10 ; 2011-08-07 : [mH] moving from OSTC code
0
heinrichsweikamp
parents:
diff changeset
11
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
12 #include "hwos.inc" ; Mandatory header
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
13 #include "shared_definitions.h" ; Mailbox from/to p2_deco.c
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
14 #include "start.inc"
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
15 #include "tft.inc"
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
16 #include "tft_outputs.inc"
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
17 #include "adc_lightsensor.inc"
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
18 #include "menu_processor.inc"
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
19 #include "strings.inc"
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
20 #include "sleepmode.inc"
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
21 #include "wait.inc"
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
22 #include "external_flash.inc"
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
23 #include "customview.inc"
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
24 #include "divemode.inc"
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
25 #include "mcp.inc" ; RX
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
26 #include "i2c.inc"
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
27 #include "comm.inc"
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
28 #include "eeprom_rs232.inc"
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
29 #include "calibrate.inc"
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
30 #include "rx_ops.inc"
0
heinrichsweikamp
parents:
diff changeset
31
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
32
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
33 extern do_main_menu
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
34 extern check_cns_violation
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
35 extern check_warn_battery
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
36 extern check_and_store_sat_violation
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
37 extern check_mbubbles
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
38
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
39 IFDEF _osct_logo
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
40 extern ostc_logo_block
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
41 ENDIF
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
42
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
43 IFDEF _compass
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
44 extern TFT_surface_compass_heading
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
45 ENDIF
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
46
213
3b5df65d53fc layout changes
heinrichsweikamp
parents: 205
diff changeset
47
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
48 ;---- Private local variables ------------------------------------------------
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
49
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
50 CBLOCK local1 ; max size is 16 byte !!!
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
51 ; currently not used
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
52 ENDC ; used: 0 byte, remaining: 16 byte
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
53
0
heinrichsweikamp
parents:
diff changeset
54
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
55 #DEFINE menu_pos_row .215
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
56 #DEFINE menu_pos_column .1
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
57 #DEFINE view_row .215
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
58 #DEFINE view_column .124
0
heinrichsweikamp
parents:
diff changeset
59
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
60
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
61 sfmode CODE
0
heinrichsweikamp
parents:
diff changeset
62
heinrichsweikamp
parents:
diff changeset
63 ;=============================================================================
heinrichsweikamp
parents:
diff changeset
64 ; Boot tasks for all modes
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
65 ;
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
66 ; called after restart via the battery selection, after compass calibration,
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
67 ; and via ghostwriter at the end of a dive
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
68 ;
0
heinrichsweikamp
parents:
diff changeset
69 global surfloop
heinrichsweikamp
parents:
diff changeset
70 surfloop:
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
71 clrf STKPTR ; clear return addresses stack
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
72 ; clrf CCP1CON ; stop PWM
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
73 ; bcf PORTC,2 ; pull PWM output to GND
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
74 clrf CCPR1L ; backlight off
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
75 call TFT_boot ; initialize TFT (includes clear screen)
245
416723c8ccd8 use single-byte hardware flag (again)
heinrichsweikamp
parents: 235
diff changeset
76
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
77 btfsc restart_fast ; shall make a fast restart?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
78 bra surfloop_1 ; YES
0
heinrichsweikamp
parents:
diff changeset
79
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
80 ; show heinrichsweikamp logo
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
81 WIN_TOP .40
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
82 WIN_LEFT .10
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
83 TFT_WRITE_PROM_IMAGE_BY_ADDR hw_logo_block
0
heinrichsweikamp
parents:
diff changeset
84
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
85 IFDEF _ostc_logo
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
86 ; show graphical OSTC logo
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
87 WIN_TOP .100
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
88 WIN_LEFT .34
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
89 TFT_WRITE_PROM_IMAGE_BY_LABEL ostc_logo_block
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
90 ELSE
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
91 ; show textual OSTC logo
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
92 WIN_COLOR color_white
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
93 WIN_STD .30,.90 ; column, row
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
94 STRCPY_PRINT "Open Source" ; show OSTC banner text, line 1
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
95 WIN_STD .20,.130 ; column, row
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
96 STRCPY_PRINT "Tauch-Computer" ; show OSTC banner text, line 2
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
97 ENDIF
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
98
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
99 WIN_COLOR color_white
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
100 WIN_SMALL .35,.180
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
101 PUTC "v" ; print v
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
102 call TFT_cat_firmware ; print x.y
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
103 PUTC " " ; print _
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
104 call TFT_cat_beta_release ; print BetaZ or Release
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
105 STRCAT_PRINT "" ; finalize output
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
106 bcf win_invert ; clean up eventual color-coding
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
107 call TFT_standard_color ; ditto
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
108 call TFT_Display_FadeIn ; dim up the display
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
109
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
110 surfloop_1:
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
111 ;---- Do all useful initializations that take time -----------------------
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
112
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
113 ; set deco mode flags
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
114 call restart_set_modes_and_flags
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
115
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
116 bsf trigger_pres_cur_changed; set flag to have pressure written to display on first round of surface loop
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
117 bsf trigger_temp_changed ; set flag to have temperature written to display on first round of surface loop
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
118
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
119 call I2C_sleep_compass ; shut down compass
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
120 call I2C_sleep_accelerometer ; shut down accelerometer
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
121
0
heinrichsweikamp
parents:
diff changeset
122 clrf ext_flash_address+0
heinrichsweikamp
parents:
diff changeset
123 clrf ext_flash_address+1
heinrichsweikamp
parents:
diff changeset
124 clrf ext_flash_address+2
heinrichsweikamp
parents:
diff changeset
125
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
126 IFDEF _ccr_pscr
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
127 movlw surface_sp ; load default surface setpoint (in cbar)
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
128 movff WREG,char_I_const_ppO2 ; store it as current setpoint
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
129 ENDIF
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
130
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
131 IFDEF _external_sensor
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
132 call transmit_setpoint ; transmit current setpoint (in cbar) via S8 digital interface (currently disabled)
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
133 ENDIF
221
90923a081ae7 minor: configure buttons during splash screen
heinrichsweikamp
parents: 213
diff changeset
134
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
135 bcf surfmode_menu ; not in surface menu (any more)
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
136 bcf compass_menu ; not in "set bearing" selection (any more)
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
137 bcf bailout_mode ; not in bailout menu (any more)
0
heinrichsweikamp
parents:
diff changeset
138
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
139 bcf switch_left ; clear intermediate button event since start/restart
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
140 bcf switch_right ; clear intermediate button event since start/restart
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
141
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
142 btfsc restart_fast ; shall make a fast restart?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
143 bra surfloop_2 ; YES
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
144
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
145 call wait_1s ; wait <= 1 second
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
146 call wait_1s ; wait 1 second
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
147 call wait_1s ; wait 1 second
0
heinrichsweikamp
parents:
diff changeset
148
heinrichsweikamp
parents:
diff changeset
149 ;---- Fade to standard surface view --------------------------------------
heinrichsweikamp
parents:
diff changeset
150
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
151 call TFT_Display_FadeOut ; dim down display to black screen
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
152 call TFT_ClearScreen ; clear screen
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
153
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
154 surfloop_2:
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
155 WIN_TOP .0
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
156 WIN_LEFT .0
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
157 WIN_FONT FT_SMALL
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
158 bcf win_invert ; clear flag for inverted text
0
heinrichsweikamp
parents:
diff changeset
159
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
160 ; show button functionalities
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
161 WIN_COLOR color_lightblue
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
162 WIN_SMALL menu_pos_column,menu_pos_row
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
163 STRCPY_TEXT_PRINT tMenu ; show "<Menu"
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
164 WIN_SMALL view_column,view_row
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
165 STRCPY_TEXT_PRINT tView ; show "View>"
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
166 call TFT_standard_color
0
heinrichsweikamp
parents:
diff changeset
167
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
168
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
169 ;---- Logo in upper right corner -----------------------------------------
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
170 IFDEF _ostc_logo
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
171 ; show graphical OSTC logo
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
172 WIN_TOP .0
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
173 WIN_LEFT .70
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
174 TFT_WRITE_PROM_IMAGE_BY_LABEL ostc_logo_block
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
175 ELSE
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
176 ; show textual OSTC logo
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
177 WIN_COLOR color_white ; set text color to white
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
178 WIN_STD .100,.2 ; set output position
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
179 STRCPY_PRINT "OSTC" ; show "OSTC"
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
180 WIN_COLOR color_cyan ; set text color to cyan
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
181 WIN_TINY .138,.2 ; set output position
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
182 STRCPY_PRINT "hwOS" ; show "hwOS"
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
183 WIN_TINY .137,.14 ; set output position
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
184 IFDEF _hwos_sport
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
185 STRCPY_PRINT "sport" ; show "sport"
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
186 ELSE
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
187 STRCPY_PRINT "tech" ; show "tech"
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
188 ENDIF
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
189 WIN_TINY .100,.32 ; set output position
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
190 call TFT_show_firmware ; show firmware version
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
191 ENDIF ; _ostc_logo
0
heinrichsweikamp
parents:
diff changeset
192
heinrichsweikamp
parents:
diff changeset
193
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
194 ;---- fill screen --------------------------------------------------------
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
195 call get_battery_voltage ; get battery voltage
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
196 call TFT_batt_surfmode ; display battery voltage
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
197 call TFT_time_surfmode ; display time
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
198 call TFT_date_surfmode ; display date
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
199 call TFT_pres_surfmode ; display surface pressure
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
200 call TFT_temp_surfmode ; display temperature
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
201 call TFT_decotype_surface ; display deco mode
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
202
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
203 TSTOSS opt_dive_mode ; in OC? (0=OC, 1=CC, 2=Gauge, 3=Apnea, 4=pSCR)
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
204 call TFT_show_OC_startgas_surface ; YES - show first gas and "OSTC2-like" active gases
0
heinrichsweikamp
parents:
diff changeset
205
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
206 movff customview_surfmode,active_customview ; reload last custom view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
207 call surf_customview_mask ; redraw last custom view
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
208
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
209 call TFT_Display_FadeIn ; display resulting surface screen
0
heinrichsweikamp
parents:
diff changeset
210
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
211 IFDEF _screendump
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
212 btfsc screen_dump_avail ; screen dump function enabled?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
213 call enable_rs232 ; YES - activate RS232 (also sets CPU to normal speed)
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
214 ENDIF
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
215
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
216 bcf restart_fast ; clear flag for fast restart
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
217 bsf imprint_surfmode_data ; start imprinting surface mode data
0
heinrichsweikamp
parents:
diff changeset
218
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
219 bcf switch_left ; clear pending left button event
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
220 bcf switch_right ; clear pending right button event
0
heinrichsweikamp
parents:
diff changeset
221
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
222 rcall reset_timeout_surfmode ; reset timeout
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
223
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
224 surfloop_loop:
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
225 ; call TFT_debug_output ; optional debug output
188
ebc28381f17d NEW: Show Bailout Gas List in Surface mode (CCR Modes)
heinrichsweikamp
parents: 187
diff changeset
226
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
227 call test_switches_surfmode ; check switches
188
ebc28381f17d NEW: Show Bailout Gas List in Surface mode (CCR Modes)
heinrichsweikamp
parents: 187
diff changeset
228
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
229 btfsc request_next_custview ; shall show next custom view?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
230 call surf_customview_toggle ; YES - show next custom view (and clear this flag)
0
heinrichsweikamp
parents:
diff changeset
231
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
232 btfss surfmode_menu ; shall enter surface menu?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
233 bra surfloop_loop_1 ; NO
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
234 bcf imprint_surfmode_data ; YES - stop imprinting surface mode data
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
235 goto do_main_menu ; - goto surface menu
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
236
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
237 surfloop_loop_1:
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
238 rcall housekeeping ; handle data imprinting, screen dump request, timeout and entering dive mode
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
239 bra surfloop_loop ; loop in surface mode
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
240
0
heinrichsweikamp
parents:
diff changeset
241
heinrichsweikamp
parents:
diff changeset
242 surfmode_check_for_warnings:
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
243 clrf message_counter ; clear message counter
560
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
244
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
245 ; warnings for all modes
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
246 call check_warn_battery ; check if the battery level should be displayed/warned
0
heinrichsweikamp
parents:
diff changeset
247
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
248 btfsc FLAG_apnoe_mode ; done for Apnoe or Gauge mode
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
249 bra surfmode_check_for_warnings2
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
250 btfsc FLAG_gauge_mode ; done for Apnoe or Gauge mode
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
251 bra surfmode_check_for_warnings2
0
heinrichsweikamp
parents:
diff changeset
252
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
253 ; warnings only in deco modes
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
254 call check_and_store_sat_violation ; check/show tissue saturation
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
255 call check_cns_violation ; check/show CNS value
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
256 call check_mbubbles ; check/show micro bubbles warning
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
257 movff int_O_lead_supersat+1,WREG ; get upper byte of leading tissue's supersaturation
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
258 btfsc WREG,int_warning_flag ; check if the warning flag is set
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
259 bra surfmode_check_for_warnings2 ; YES - outside model
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
260 rcall surfmode_check_for_desat ; NO - check/display desaturation time
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
261 rcall surfmode_check_for_nofly ; NO - check/display no-fly time
560
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
262
0
heinrichsweikamp
parents:
diff changeset
263 surfmode_check_for_warnings2:
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
264 ; setup message page number
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
265 incf message_page,F ; increment page number
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
266 bcf STATUS,C ; clear carry bit
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
267 rlcf message_page,W ; each page can take two messages
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
268 cpfsgt message_counter ; number of actual messages > message capacity ?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
269 clrf message_page ; NO - all messages could be shown, restart from first page next time
0
heinrichsweikamp
parents:
diff changeset
270
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
271 ; clear both rows if there is nothing to show at all
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
272 tstfsz message_counter ; any message to show?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
273 bra surfmode_check_for_warnings3 ; YES - look if second row needs to be cleared
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
274 goto TFT_clear_message_window ; NO - clear complete message area and return
0
heinrichsweikamp
parents:
diff changeset
275
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
276 surfmode_check_for_warnings3:
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
277 ; clear 2nd row of messages if there is nothing to show (on this page)
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
278 btfss message_2nd_row_used ; does the 2nd row contain a message?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
279 goto TFT_clear_message_window_row2 ; NO - clear the 2nd row and return
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
280 return ; YES - done
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
281
0
heinrichsweikamp
parents:
diff changeset
282
heinrichsweikamp
parents:
diff changeset
283 surfmode_check_for_desat:
560
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
284 banksel int_O_desaturation_time
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
285 movf int_O_desaturation_time+0,W
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
286 iorwf int_O_desaturation_time+1,W
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
287 banksel common ; back to bank common
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
288 bnz surfmode_check_for_desat_1 ; is the desat-time > 0 ?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
289 return ; NO - done
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
290 surfmode_check_for_desat_1:
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
291 incf message_counter,F ; YES - increase counter
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
292 call TFT_desaturation_time ; - show desaturation time
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
293 return ; - done
0
heinrichsweikamp
parents:
diff changeset
294
heinrichsweikamp
parents:
diff changeset
295 surfmode_check_for_nofly:
560
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
296 banksel int_O_nofly_time
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
297 movf int_O_nofly_time+0,W
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
298 iorwf int_O_nofly_time+1,W
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
299 banksel common ; back to bank common
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
300 bnz surfmode_check_for_nofly_1 ; is the nofly-time > 0 ?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
301 return ; NO - done
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
302 surfmode_check_for_nofly_1:
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
303 incf message_counter,F ; YES - increase counter
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
304 call TFT_nofly_time ; - show nofly-time
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
305 return ; - done
0
heinrichsweikamp
parents:
diff changeset
306
heinrichsweikamp
parents:
diff changeset
307
heinrichsweikamp
parents:
diff changeset
308 ;=============================================================================
560
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
309
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
310 test_switches_surfmode: ; check buttons in surface mode
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
311 btfsc switch_right ; right button pressed?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
312 bra test_switches_surfmode2 ; YES
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
313 btfsc switch_left ; left button pressed?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
314 bra test_switches_surfmode3 ; YES
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
315 return ; NO to both - done
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
316
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
317 test_switches_surfmode2: ; right button pressed
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
318 bcf switch_right ; clear button event
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
319 rcall reset_timeout_surfmode ; reset timeout
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
320 IFDEF _compass
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
321 movlw .6 ; coding for surface custom compass view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
322 cpfseq active_customview ; in compass view?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
323 bra test_switches_surfmode2a ; NO
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
324 btfss compass_menu ; "set course" selection shown?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
325 bra test_switches_surfmode2a ; NO
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
326 bsf compass_bearing_set ; YES - set new course
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
327 MOVII compass_heading_shown,compass_bearing
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
328 bra test_switches_surfmode3b ; - clear "Course" label and return
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
329 ENDIF
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
330 test_switches_surfmode2a:
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
331 bsf request_next_custview ; request next custom view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
332 bcf compass_menu ; "set course" selection not shown anymore
0
heinrichsweikamp
parents:
diff changeset
333 return
heinrichsweikamp
parents:
diff changeset
334
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
335 test_switches_surfmode3: ; left button pressed
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
336 bcf switch_left ; clear button event
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
337 rcall reset_timeout_surfmode ; reset timeout
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
338 IFDEF _compass
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
339 movlw .6 ; coding for surface custom view compass
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
340 cpfseq active_customview ; in compass view?
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
341 bra test_switches_surfmode3a ; NO
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
342 btfsc compass_menu ; YES - "set course" selection already shown?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
343 bra test_switches_surfmode3b ; YES - remove it
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
344 call TFT_surf_set_bearing ; NO - show it
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
345 return
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
346 ENDIF
382
6f3530eb48f9 allow compass bearing on surface
heinrichsweikamp
parents: 375
diff changeset
347 test_switches_surfmode3a:
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
348 bcf compass_bearing_set ; clear course on entering menu
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
349 bsf surfmode_menu ; flag that the surface menu shall be entered
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
350 return
382
6f3530eb48f9 allow compass bearing on surface
heinrichsweikamp
parents: 375
diff changeset
351
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
352 IFDEF _compass
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
353 test_switches_surfmode3b:
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
354 WIN_BOX_BLACK .158,.190, .15, .99 ; clear "Course" label (top, bottom, left, right)
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
355 bcf compass_menu ; clear flag for "set course" selection
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 564
diff changeset
356 return
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
357 ENDIF
382
6f3530eb48f9 allow compass bearing on surface
heinrichsweikamp
parents: 375
diff changeset
358
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
359
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
360 ; handle data imprinting, screen dump request, timeout and entering dive mode
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
361 global housekeeping
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
362 housekeeping:
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
363 btfss trigger_full_second ; new 1/1 second begun?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
364 bra housekeeping_1 ; NO
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
365
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
366 ; tasks any new second
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
367 bcf trigger_full_second ; YES - clear flag
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
368 call get_battery_voltage ; - get battery voltage
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
369
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
370 btfsc imprint_time_date ; - shall imprint the current time & date?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
371 call TFT_show_time_date_menu ; YES - imprint time and date on display (copies running time to latch registers)
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
372
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
373 IFDEF _rx_functions
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
374 btfsc tr_functions_activated ; - TR functions activated?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
375 call I2C_get_tankdata ; YES - get new transmitter data
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
376
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
377 btfsc imprint_xmitter_pres ; - shall imprint transmitter ID and pressure?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
378 call TFT_menu_tank_pres ; YES - imprint transmitter ID and pressure
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
379 ENDIF
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
380
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
381 btfss imprint_surfmode_data ; - shall imprint all surface mode data?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
382 bra housekeeping_0 ; NO
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
383 call TFT_time_surfmode ; YES - update displayed time
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
384 call TFT_batt_surfmode ; - update displayed battery voltage
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
385 btfss timebase_1sec,0 ; - on even second?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
386 call surfmode_check_for_warnings ; YES - check for warnings and display/update them
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
387
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
388 IFDEF _rx_functions
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
389 btfss tr_functions_activated ; - TR functions activated?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
390 bra housekeeping_0 ; NO - skip tank pressure part
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
391
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
392 call get_pressure_readings ; YES - get pressure readings
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
393 call TFT_surface_tank_pres ; - update first gas/diluent pressure
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
394
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
395 movf active_customview,W ; - get current custom view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
396 xorlw .10 ; - coding of tank data custom view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
397 btfsc STATUS,Z ; - equal?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
398 call TFT_surface_tankdata ; YES - update tank data custom view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
399 ENDIF
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
400
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
401 housekeeping_0:
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
402 bsf restart_fast ; default to doing a fast restart (no logos)
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
403 call set_dive_modes ; check if dive mode needs to be entered, will set dive mode flag if yes
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
404 btfsc simulatormode ; in simulator mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
405 bra housekeeping_1 ; YES - can't restart or go to sleep without prior cleanup
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
406 btfsc divemode ; NO - need to enter dive mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
407 goto restart ; YES - restart, will proceed to dive mode
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
408 btfss trigger_timeout ; NO - timeout?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
409 bra housekeeping_1 ; NO
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
410 btfsc surfmode_menu ; YES - in surface menus?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
411 goto restart ; YES - goto restart, will proceed to surface mode
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
412 bcf restart_fast ; NO - set next restart to be done slow, i.e. with logos
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
413 goto sleeploop ; - goto sleep mode
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
414
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
415 housekeeping_1:
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
416 btfss trigger_quarter_second ; new 1/4 second begun?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
417 bra housekeeping_2 ; NO
0
heinrichsweikamp
parents:
diff changeset
418
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
419 ; tasks any new 1/4 second
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
420 bcf trigger_quarter_second ; YES - clear flag
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
421 IFDEF _external_sensor
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
422 btfsc imprint_sensor_mv ; - shall imprint sensor mV data?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
423 call TFT_menu_calibrate ; YES - imprint sensor mV data
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
424 ENDIF ; _external_sensor
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
425 btfss imprint_surfmode_data ; - shall imprint all surface mode data?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
426 bra housekeeping_2 ; NO
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
427 btfsc trigger_pres_cur_changed ; YES - pressure changed?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
428 call TFT_pres_surfmode ; YES - display surface pressure
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
429 bcf trigger_pres_cur_changed ; - clear flag (anyhow)
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
430 IFDEF _compass
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
431 movf active_customview,W ; - get current custom view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
432 xorlw .6 ; - coding of compass custom view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
433 btfsc STATUS,Z ; - equal?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
434 call TFT_surface_compass_heading ; YES - update compass view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
435 ENDIF ; _compass
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
436 IFDEF _external_sensor
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
437 btfsc FLAG_ccr_mode ; - in CCR mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
438 bra housekeeping_1a ; - YES - handle sensors
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
439 btfsc FLAG_pscr_mode ; - in pSCR mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
440 bra housekeeping_1a ; YES - handle sensors
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
441 bra housekeeping_2 ; NO to both
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
442 housekeeping_1a: ; handle sensors
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
443 movff opt_ccr_mode,WREG ; =0: fixed SP, =1: sensor, =2: autoSP
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
444 decfsz WREG ; opt_ccr_mode = 1 (sensor)?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
445 bra housekeeping_2 ; NO - skip sensor readings
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
446 call calc_deko_divemode_sensor ; YES - read & calculate sensor data
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
447 call TFT_surface_sensor ; - update displayed sensor data
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
448 call TFT_sensor_surface_warning ; - show a down-arrow behind sensor readings when sensor is at end-of-life
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
449 movf active_customview,W ; - get current custom view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
450 xorlw .9 ; - coding of sensor mV readings custom view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
451 btfsc STATUS,Z ; - equal?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
452 call TFT_sensor_mV ; YES - update mV readings
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
453 ENDIF ; _external_sensor
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
454 housekeeping_2:
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
455 btfss trigger_full_minute ; new 1/1 minute begun?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
456 bra housekeeping_3 ; NO
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
457
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
458 ; tasks any new minute
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
459 bcf trigger_full_minute ; YES - clear flag
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
460 btfsc simulatormode ; - in simulator mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
461 bra housekeeping_2a ; YES - real tissues are in the vault, skip desaturation calculations
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
462 call deco_calc_dive_interval_1min; NO - calculate 1 minute at surface conditions (C-code)
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
463 call deco_calc_desaturation_time ; - calculate desaturation and no-fly/no-altitude time (C-code)
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
464 banksel common ; - back to bank common
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
465 housekeeping_2a:
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
466 btfss imprint_surfmode_data ; - shall imprint all surface mode data?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
467 bra housekeeping_3 ; NO
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
468 call TFT_date_surfmode ; YES - update displayed date
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
469
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
470 btfsc trigger_temp_changed ; - temperature changed?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
471 call TFT_temp_surfmode ; YES - display temperature
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
472 bcf trigger_temp_changed ; - clear flag (anyhow)
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
473
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
474 movf active_customview,W ; - get current custom view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
475 xorlw .5 ; - coding of tissue custom view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
476 btfsc STATUS,Z ; - equal?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
477 call TFT_surface_tissues ; YES - update tissue diagram
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
478
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
479 movf active_customview,W ; - get current custom view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
480 xorlw .8 ; - coding of last dive info custom view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
481 btfsc STATUS,Z ; - equal?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
482 call TFT_surface_lastdive ; YES - update last dive infos
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
483
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
484 housekeeping_3:
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
485 ; tasks any round
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
486 IFDEF _screendump
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
487 btfsc screen_dump_avail ; screen dump function enabled?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
488 call TFT_dump_screen_check ; YES - check if requested and do it
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
489 ELSE
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
490 btfsc comm_mode_disabled ; COMM mode disabled?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
491 return ; YES - done
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 587
diff changeset
492 ENDIF
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
493 btfss surfmode_menu ; in surface menus?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
494 return ; NO - done
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
495
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
496 btfsc simulatormode ; currently in simulator (deco calculator) mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
497 return ; YES - suppress COMM mode to not jeopardize backup/restore of tissue data
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
498
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
499 btfss vusb_in ; USB plugged in?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
500 return ; NO - done
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
501 IFDEF _screendump
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
502 btfsc screen_dump_avail ; YES - screen dump enabled?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
503 return ; YES - no COMM mode to be able to make screen shots of the menu and simulator mode
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
504 ENDIF
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
505 goto comm_mode_usb ; YES / NO - proceed to COMM mode, will also set CPU to speed normal
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
506
188
ebc28381f17d NEW: Show Bailout Gas List in Surface mode (CCR Modes)
heinrichsweikamp
parents: 187
diff changeset
507
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
508 global reset_timeout_surfmode
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
509 reset_timeout_surfmode:
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
510 movlw surfmode_timeout_default ; load default timeout value
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
511 btfsc imprint_sensor_mv ; currently imprinting O2 sensor mV data?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
512 movlw surfmode_timeout_calibrate ; YES - replace with CCR Calibrate Menu timeout
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
513 btfsc simulatormode ; currently in simulator (deco calculator) mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
514 movlw surfmode_timeout_simulator ; YES - replace with simulator timeout
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
515 IFDEF _rx_functions
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
516 btfsc imprint_xmitter_ID ; currently selecting pressure transmitter?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
517 movlw surfmode_timeout_xmitter ; YES - replace with transmitter selection timeout
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
518 ENDIF ; _rx_functions
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
519 IFDEF _external_sensor
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
520 btfsc surfmode_menu ; in surface menu?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
521 bra reset_timeout_time ; YES - keep timeout value
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
522 btfsc FLAG_ccr_mode ; NO - in CCR mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
523 bra reset_timeout_surfmode_loop ; YES - continue checking if in sensor mode
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
524 btfsc FLAG_ccr_mode ; NO - in pSCR mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
525 bra reset_timeout_surfmode_loop ; YES - continue checking if in sensor mode
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
526 bra reset_timeout_time ; NO - keep timeout value
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
527 reset_timeout_surfmode_loop:
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
528 movff opt_ccr_mode,lo ; get loop mode (=0: fixed/calculated SP, =1: sensor, =2: auto SP)
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
529 decfsz lo,f ; in sensor mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
530 bra reset_timeout_time ; NO - keep timeout value
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
531 movlw surfmode_timeout_sensor ; YES - replace with sensor mode timeout
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
532 ENDIF ; _external_sensor
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
533 ;bra reset_timeout_time ; - set timeout value
0
heinrichsweikamp
parents:
diff changeset
534
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
535
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
536 global reset_timeout_time
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
537 reset_timeout_time: ; entry point with timeout value in WREG
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
538 movwf isr_timeout_reload ; copy WREG to isr_timeout_reload
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
539 bsf reset_timeout ; request ISR to reset the timeout
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
540 bcf trigger_timeout ; clear any pending timeout trigger
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
541 return ; done
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
542
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
543 ;-----------------------------------------------------------------------------
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
544
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 621
diff changeset
545 END