Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/surfmode.asm @ 720:4452837aff37
Vault date and time during update
author | heinrichsweikamp |
---|---|
date | Sun, 26 May 2013 11:58:56 +0200 |
parents | 91ae251d379f |
children | 380a07e4fc15 |
comparison
equal
deleted
inserted
replaced
719:ad5ab9910820 | 720:4452837aff37 |
---|---|
22 ; known bugs: | 22 ; known bugs: |
23 ; ToDo: | 23 ; ToDo: |
24 | 24 |
25 surfloop: | 25 surfloop: |
26 ; Boot tasks for all modes | 26 ; Boot tasks for all modes |
27 call DISPLAY_boot | |
28 surfloop_no_display_init: | |
29 call DISP_ClearScreen | |
27 bcf s_unlock_after_sleep ; Lock sensor results | 30 bcf s_unlock_after_sleep ; Lock sensor results |
28 call restart_set_modes_and_flags ; Sets decomode flags | 31 call restart_set_modes_and_flags ; Sets decomode flags |
29 clrf lo | 32 clrf lo |
30 movff lo,char_I_const_ppO2 ; reset to standard mode, OSTC assumes Air breathing at the surface! | 33 movff lo,char_I_const_ppO2 ; reset to standard mode, OSTC assumes Air breathing at the surface! |
31 | 34 call I2CReset |
32 call DISP_brightness_full ; max. brightness | 35 call DISP_brightness_full ; max. brightness |
33 | |
34 call I2CReset | |
35 call DISPLAY_boot | |
36 call DISP_serial ; Show OSTC serial and firmware version | 36 call DISP_serial ; Show OSTC serial and firmware version |
37 call DISP_clock ; display time | 37 call DISP_clock ; display time |
38 call update_date ; display date | 38 call update_date ; display date |
39 call get_battery_voltage ; get battery voltage | 39 call get_battery_voltage ; get battery voltage |
40 movff last_surfpressure_30min+0,int_I_pres_respiration+0 ; copy surface air pressure to deco routine | 40 movff last_surfpressure_30min+0,int_I_pres_respiration+0 ; copy surface air pressure to deco routine |