Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/surfmode.asm @ 519:154b1d1c489e
NEW added GF surface display.
author | JeanDo |
---|---|
date | Tue, 06 Dec 2011 18:02:18 +0100 |
parents | 2ac77db9c150 |
children | 33abbc08f01e |
comparison
equal
deleted
inserted
replaced
518:52f3f3f39932 | 519:154b1d1c489e |
---|---|
126 surfloop_loop1: | 126 surfloop_loop1: |
127 ; One Second tasks for all modes | 127 ; One Second tasks for all modes |
128 call PLED_clock ; update clock | 128 call PLED_clock ; update clock |
129 call test_charger ; check if charger IC is active | 129 call test_charger ; check if charger IC is active |
130 call timeout_surfmode ; check timeout | 130 call timeout_surfmode ; check timeout |
131 call update_batt_voltage ; display battery voltage | 131 call update_batt_voltage ; display battery voltage |
132 call timeout_premenu ; timeout premenu | 132 call timeout_premenu ; timeout premenu |
133 call set_leds_surfmode ; Sets Warning and No-Fly LEDs | 133 call set_leds_surfmode ; Sets Warning and No-Fly LEDs |
134 call check_customfunctions ; Checks CF functions and displays warning symbol if something critical is wrong | 134 call check_customfunctions ; Checks CF functions and displays warning symbol if something critical is wrong |
135 call PLED_display_decotype_surface ; Show deco mode | 135 call PLED_display_decotype_surface ; Show deco mode |
136 call surfcustomview_second ; Do every-second tasks for the custom view area | 136 call surfcustomview_second ; Do every-second tasks for the custom view area |
137 call dive_type_icons ; Draw Air/Nitrox/Trimix color icon. | 137 call dive_type_icons ; Draw Air/Nitrox/Trimix color icon. |
138 btfsc enter_error_sleep ; Enter Fatal Error Routine? | 138 |
139 call fatal_error_sleep ; Yes (In Sleepmode.asm!) | 139 ; Every 2 seconds, overwrite with GF value (if needed to display) |
140 bcf onesecupdate ; every second tasks done | 140 btfsc secs,1 ; Alternating every 2sec (if needed) |
141 call PLED_display_cns_surface ; Display CNS (if > CF15). | |
142 btfss secs,1 | |
143 call PLED_display_gf_surface ; Display GF (if > CF8). | |
144 | |
145 btfsc enter_error_sleep ; Enter Fatal Error Routine? | |
146 call fatal_error_sleep ; Yes (In Sleepmode.asm!) | |
147 bcf onesecupdate ; every second tasks done | |
141 | 148 |
142 surfloop_loop2: | 149 surfloop_loop2: |
143 ; Tasks approx. every 50ms for all modes | 150 ; Tasks approx. every 50ms for all modes |
144 call test_switches_surfmode ; check switches | 151 call test_switches_surfmode ; check switches |
145 | 152 |
223 bra update_surfloop60_2 | 230 bra update_surfloop60_2 |
224 btfsc FLAG_apnoe_mode ; Ignore in Apnoe mode | 231 btfsc FLAG_apnoe_mode ; Ignore in Apnoe mode |
225 bra update_surfloop60_2 | 232 bra update_surfloop60_2 |
226 | 233 |
227 ; One Minute tasks for deco modes | 234 ; One Minute tasks for deco modes |
228 call PLED_display_cns_surface ; Update surface CNS display (If allowed by CF15) | |
229 call PLED_nofly_time ; display nofly time | 235 call PLED_nofly_time ; display nofly time |
230 call PLED_desaturation_time ; display desaturation time | 236 call PLED_desaturation_time ; display desaturation time |
231 btfsc premenu ; Not when "Menu?" is displayed! | 237 btfsc premenu ; Not when "Menu?" is displayed! |
232 bra update_surfloop60_2 | 238 bra update_surfloop60_2 |
233 | 239 |