comparison code_part1/OSTC_code_asm_part1/definitions.asm @ 577:e3ffc6d62a63

minor clean
author heinrichsweikamp
date Sun, 22 Apr 2012 21:32:04 +0200
parents ab2686087bce
children fbd5e2b75a63
comparison
equal deleted inserted replaced
576:ab2686087bce 577:e3ffc6d62a63
83 #DEFINE color_grey b'01001010' ; (2,2,2) 83 #DEFINE color_grey b'01001010' ; (2,2,2)
84 #DEFINE color_cyan b'11011111' ; (6,7,3) 84 #DEFINE color_cyan b'11011111' ; (6,7,3)
85 #DEFINE color_orange b'11111000' ; (7,6,0) 85 #DEFINE color_orange b'11111000' ; (7,6,0)
86 #DEFINE color_pink b'11111010' ; (7,6,2) 86 #DEFINE color_pink b'11111010' ; (7,6,2)
87 87
88 #DEFINE warn_depth d'1' 88 #DEFINE warn_depth d'1'
89 #DEFINE warn_cns d'2' 89 #DEFINE warn_cns d'2'
90 #DEFINE warn_gf d'3' 90 #DEFINE warn_gf d'3'
91 #DEFINE warn_ppo2 d'4' 91 #DEFINE warn_ppo2 d'4'
92 #DEFINE warn_velocity d'5' 92 #DEFINE warn_velocity d'5'
93 #DEFINE warn_ceiling d'6' 93 #DEFINE warn_ceiling d'6'
94 #DEFINE warn_gas_in_gaslist d'7' 94 #DEFINE warn_gas_in_gaslist d'7'
95 95
96 ;Configuration bits 96 ;Configuration bits
97 CONFIG OSC = IRCIO67 ;Internal oscillator block, port function on RA6 and RA7 97 CONFIG OSC = IRCIO67 ;Internal oscillator block, port function on RA6 and RA7
98 CONFIG FCMEN = OFF ;Fail-Safe Clock Monitor disabled 98 CONFIG FCMEN = OFF ;Fail-Safe Clock Monitor disabled
155 ;============================================================================= 155 ;=============================================================================
156 ; BANK1 data 156 ; BANK1 data
157 ; 157 ;
158 bank1 udata 0x100 ;Bank 1 158 bank1 udata 0x100 ;Bank 1
159 159
160 ;wreg_temp res 1 ;variables used for context saving during ISR
161 ;status_temp res 1
162 ;bsr_temp res 1
163 prod_temp res 2 ;Trashed by isr_mult16x16, for sensor compensations 160 prod_temp res 2 ;Trashed by isr_mult16x16, for sensor compensations
164 161
165 secs res 1 ;realtime clock 162 secs res 1 ;realtime clock
166 mins res 1 163 mins res 1
167 hours res 1 164 hours res 1
274 avr_rel_pressure_total res 2 ; Average rel. pressure (Average depth) for the dive [mbar], Non-Resettable 271 avr_rel_pressure_total res 2 ; Average rel. pressure (Average depth) for the dive [mbar], Non-Resettable
275 last_pressure res 2 272 last_pressure res 2
276 temperature_avg res 2 ; Temperature summing buffer. 273 temperature_avg res 2 ; Temperature summing buffer.
277 temperature res 2 ; Final temperature. SIGNED. 274 temperature res 2 ; Final temperature. SIGNED.
278 last_temperature res 2 ; Last displayed temperature (used to detect changes). 275 last_temperature res 2 ; Last displayed temperature (used to detect changes).
279 Dx res 2
280 276
281 last_surfpressure res 2 ; Divemode 277 last_surfpressure res 2 ; Divemode
282 last_surfpressure_15min res 2 278 last_surfpressure_15min res 2
283 last_surfpressure_30min res 2 279 last_surfpressure_30min res 2
284 divemins res 2 ; Minutes 280 divemins res 2 ; Minutes
313 menupos3 res 1 ; used in Logbook, Set Time and divemode 309 menupos3 res 1 ; used in Logbook, Set Time and divemode
314 310
315 eeprom_address res 2 ; external EEPROM 311 eeprom_address res 2 ; external EEPROM
316 eeprom_header_address res 2 312 eeprom_header_address res 2
317 313
318 divenumber res 1 ; Logbook
319
320 batt_voltage res 2 ; Battery voltage in mV 314 batt_voltage res 2 ; Battery voltage in mV
321 315
322 i2c_temp res 1 ; I²C timeout counter 316 i2c_temp res 1 ; I²C timeout counter
323 i2c_temp2 res 1 ; 200 317 i2c_temp2 res 1 ; 200
324 318
333 327
334 char_I_O2_ratio res 1 ; 02 ratio 328 char_I_O2_ratio res 1 ; 02 ratio
335 329
336 active_gas res 1 ; Holds number of active gas 330 active_gas res 1 ; Holds number of active gas
337 331
338 last_diluent res 1 ; backup of diluent percentage in const ppO2 mode 332 ;last_diluent res 1 ; backup of diluent percentage in const ppO2 mode
339 ;last_ppO2_value res 1 ; last calculated ppO2 value 333 ;last_ppO2_value res 1 ; last calculated ppO2 value
340 334
341 debug_char res 6 ; For debugmode 335 debug_char res 6 ; For debugmode
342 336
343 apnoe_mins res 1 ; single descent minutes for Apnoe mode 337 apnoe_mins res 1 ; single descent minutes for Apnoe mode