Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/definitions.asm @ 274:a728b4a1b660
Setpoint changes stored in profile, EAD and END displayed in divemode (Customview 7)
author | heinrichsweikamp |
---|---|
date | Sun, 17 Apr 2011 17:57:44 +0200 |
parents | 35bbab4d3c6f |
children | 02303915c199 |
comparison
equal
deleted
inserted
replaced
273:35bbab4d3c6f | 274:a728b4a1b660 |
---|---|
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 "shared_definitions.h" |
89 | 89 |
90 ;============================================================================= | 90 ;============================================================================= |
91 ; Reserve space for C-code data space. Eg.when calling log. | 91 ; Reserve space for C-code data space. Eg.when calling log. |
92 ; Note: overlayed with md_hash temporary space. | 92 ; Note: overlayed with md_hash temporary space. |
93 c_code_data_stack EQU 0x800 | 93 c_code_data_stack EQU 0x800 |
484 #DEFINE charge_done flag11,4 ;=1: Complete charge cycle done | 484 #DEFINE charge_done flag11,4 ;=1: Complete charge cycle done |
485 #DEFINE initialize_battery1 flag11,5 ;=1: Battery memory need to be initialised | 485 #DEFINE initialize_battery1 flag11,5 ;=1: Battery memory need to be initialised |
486 #DEFINE initialize_battery2 flag11,6 ;=1: Battery memory need to be initialised | 486 #DEFINE initialize_battery2 flag11,6 ;=1: Battery memory need to be initialised |
487 #DEFINE charge_started flag11,7 ;=1: Charger started in CC mode | 487 #DEFINE charge_started flag11,7 ;=1: Charger started in CC mode |
488 | 488 |
489 #DEFINE switch_left_isr flag12,0 ;=1: left switch pressed (Only modified in ISR!) | 489 #DEFINE setpoint_changed flag12,0 ;=1: Setpoint was changed in divemode, store in profile |
490 #DEFINE switch_right_isr flag12,1 ;=1: right switch pressed (Only modified in ISR!) | 490 ; #DEFINE free flag12,1 ;=1: |
491 #DEFINE debug_mode flag12,2 ;=1: Debugmode active | 491 #DEFINE debug_mode flag12,2 ;=1: Debugmode active |
492 #DEFINE neg_flag_isr flag12,3 ;=1: ISR Negative flag (Math) | 492 #DEFINE neg_flag_isr flag12,3 ;=1: ISR Negative flag (Math) |
493 #DEFINE select_bailoutgas flag12,4 ;=1: Select Bailout instead of Setpoint in Gaslist | 493 #DEFINE select_bailoutgas flag12,4 ;=1: Select Bailout instead of Setpoint in Gaslist |
494 #DEFINE FLAG_apnoe_mode flag12,5 ;=1: Apnoe mode selected | 494 #DEFINE FLAG_apnoe_mode flag12,5 ;=1: Apnoe mode selected |
495 #DEFINE customfunction_page flag12,6 ;=1: Use 2nd Page of Custom Functions | 495 #DEFINE customfunction_page flag12,6 ;=1: Use 2nd Page of Custom Functions |