comparison code_part1/OSTC_code_asm_part1/definitions.asm @ 408:3e0192f6c241

NEW: End-of-Dive countdown displayed after surfacing
author heinrichsweikamp
date Thu, 07 Jul 2011 21:22:05 +0200
parents 2534277be060
children b358a394e6aa
comparison
equal deleted inserted replaced
407:47b1135cbff3 408:3e0192f6c241
83 CONFIG LVP = OFF ;Single-Supply ICSP disabled 83 CONFIG LVP = OFF ;Single-Supply ICSP disabled
84 CONFIG STVREN = OFF ;Stack full/underflow will not cause Reset 84 CONFIG STVREN = OFF ;Stack full/underflow will not cause Reset
85 85
86 ;============================================================================= 86 ;=============================================================================
87 87
88 ;#include "../OSTC_code_c_part2/shared_definitions.h" 88 #include "../OSTC_code_c_part2/shared_definitions.h"
89 #include "shared_definitions.h" 89 ;#include "shared_definitions.h"
90 90
91 ;============================================================================= 91 ;=============================================================================
92 ; Reserve space for C-code data space. Eg.when calling log. 92 ; Reserve space for C-code data space. Eg.when calling log.
93 ; Note: overlayed with md_hash temporary space. 93 ; Note: overlayed with md_hash temporary space.
94 c_code_data_stack EQU 0x800 94 c_code_data_stack EQU 0x800
425 #DEFINE first_FD flag4,6 ; 1st 0xFD in EEPROM found 425 #DEFINE first_FD flag4,6 ; 1st 0xFD in EEPROM found
426 #DEFINE first_FA flag4,6 ; 1st 0xFA in EEPROM found 426 #DEFINE first_FA flag4,6 ; 1st 0xFA in EEPROM found
427 #DEFINE second_FD flag4,7 ; 2nd 0xFD in EEPROM found 427 #DEFINE second_FD flag4,7 ; 2nd 0xFD in EEPROM found
428 #DEFINE second_FA flag4,7 ; 2nd 0xFA in EEPROM found 428 #DEFINE second_FA flag4,7 ; 2nd 0xFA in EEPROM found
429 429
430 ;#DEfINE unused flag5,0 ; unused 430 #DEfINE timeout_display flag5,0 ; =1: The divemode timeout is displayed
431 #DEFINE eeprom_blockwrite flag5,1 ; EEPROM blockwrite active 431 #DEFINE eeprom_blockwrite flag5,1 ; EEPROM blockwrite active
432 #DEFINE Flag_4 flag5,2 ; unused 432 #DEFINE Flag_4 flag5,2 ; unused
433 #DEFINE low_battery_state flag5,3 ;=1 if battery low 433 #DEFINE low_battery_state flag5,3 ;=1 if battery low
434 #DEFINE DP_done flag5,4 ; valconv 434 #DEFINE DP_done flag5,4 ; valconv
435 #DEFINE DP_done2 flag5,5 ; valconv 435 #DEFINE DP_done2 flag5,5 ; valconv