comparison code_part1/OSTC_code_asm_part1/start.asm @ 233:2cbaa01dac26

Hunting for NoFly (bug BB13)... not found yet... + In DEBUG compile, keep simulated dives in logbook, desat and nofly time, etc.
author JeanDo
date Tue, 15 Mar 2011 19:16:34 +0100
parents 85ea09d3b9d8
children ade0848c8b8b
comparison
equal deleted inserted replaced
232:59c479181724 233:2cbaa01dac26
39 39
40 ; Defaults for RTC 40 ; Defaults for RTC
41 call disable_rs232 ; disable UART module 41 call disable_rs232 ; disable UART module
42 call RTCinit ; reset RTC 42 call RTCinit ; reset RTC
43 43
44 ; Extra power-up reset (JeanDo)
45 ifdef TESTING
46 call do_menu_reset_all2
47 endif
48
49 ; Air pressure compensation after reset 44 ; Air pressure compensation after reset
50 call get_calibration_data ; Get calibration data from pressure sensor 45 call get_calibration_data ; Get calibration data from pressure sensor
51 46
52 bcf pressure_refresh 47 bcf pressure_refresh
53 wait_start_pressure: 48 wait_start_pressure:
60 clrf surface_interval+1 55 clrf surface_interval+1
61 56
62 bsf sleepmode ; Routine only works in sleepmode... 57 bsf sleepmode ; Routine only works in sleepmode...
63 call pressuretest_sleep_fast ; Gets pressure without averaging (faster!) 58 call pressuretest_sleep_fast ; Gets pressure without averaging (faster!)
64 bcf sleepmode ; Normal mode again 59 bcf sleepmode ; Normal mode again
65 60
66 movff amb_pressure+0,last_surfpressure+0 61 movff amb_pressure+0,last_surfpressure+0
67 movff amb_pressure+1,last_surfpressure+1 62 movff amb_pressure+1,last_surfpressure+1
68 movff amb_pressure+0,last_surfpressure_15min+0 63 movff amb_pressure+0,last_surfpressure_15min+0
69 movff amb_pressure+1,last_surfpressure_15min+1 64 movff amb_pressure+1,last_surfpressure_15min+1
70 movff amb_pressure+0,last_surfpressure_30min+0 65 movff amb_pressure+0,last_surfpressure_30min+0
71 movff amb_pressure+1,last_surfpressure_30min+1 ; Rests all airpressure registers 66 movff amb_pressure+1,last_surfpressure_30min+1 ; Rests all airpressure registers
67
68 ; Extra power-up reset (JeanDo)
69 ifdef TESTING
70 call do_menu_reset_all2
71 endif
72 72
73 ; reset deco data 73 ; reset deco data
74 clrf WREG ; Use as buffer 74 clrf WREG ; Use as buffer
75 movff WREG,char_I_He_ratio ; No He at the Surface 75 movff WREG,char_I_He_ratio ; No He at the Surface
76 movlw d'79' ; 79% N2 76 movlw d'79' ; 79% N2