comparison src/hwos.inc @ 480:ad8acade5567

NEW: PSCR mode (Passive semi-closed rebreather)
author heinrichsweikamp
date Mon, 06 Feb 2017 16:26:36 +0100
parents 34e73dc68799
children 3e643ec05dac
comparison
equal deleted inserted replaced
479:34e73dc68799 480:ad8acade5567
20 #include <p18f87k22.inc> 20 #include <p18f87k22.inc>
21 #include <ports.inc> ; Portmap 21 #include <ports.inc> ; Portmap
22 22
23 ; Firmware definition 23 ; Firmware definition
24 #DEFINE softwareversion_x d'2' ; Software version XX.YY 24 #DEFINE softwareversion_x d'2' ; Software version XX.YY
25 #DEFINE softwareversion_y d'13' ; Software version XX.YY 25 #DEFINE softwareversion_y d'14' ; Software version XX.YY
26 #DEFINE softwareversion_beta 0 ; (and 0 for release) 26 #DEFINE softwareversion_beta 1 ; (and 0 for release)
27 ; Firmware version will appear in "Change Firmware" style 27 ; Firmware version will appear in "Change Firmware" style
28 #DEFINE firmware_expire_year .18 28 #DEFINE firmware_expire_year .18
29 #DEFINE firmware_expire_month .6 29 #DEFINE firmware_expire_month .6
30 #DEFINE firmware_expire_day .1 30 #DEFINE firmware_expire_day .1
31 31
378 flag9 res 1 378 flag9 res 1
379 flag10 res 1 379 flag10 res 1
380 flag11 res 1 380 flag11 res 1
381 flag12 res 1 381 flag12 res 1
382 flag13 res 1 382 flag13 res 1
383 flag14 res 1
383 384
384 hardware_flag res 1 ; hardware descriptor flag 385 hardware_flag res 1 ; hardware descriptor flag
385 386
386 temp1 res 1 387 temp1 res 1
387 temp2 res 1 388 temp2 res 1
588 opt_dil_O2_ratio res 5 ; Must be in line with opt_gas_O2_ratio 589 opt_dil_O2_ratio res 5 ; Must be in line with opt_gas_O2_ratio
589 opt_gas_He_ratio res 5 ; He ratio Gas1-5 590 opt_gas_He_ratio res 5 ; He ratio Gas1-5
590 opt_dil_He_ratio res 5 ; Must be in line with opt_gas_He_ratio 591 opt_dil_He_ratio res 5 ; Must be in line with opt_gas_He_ratio
591 opt_gas_type res 5 ; 0=Disabled, 1=First, 2=Travel, 3=Deco 592 opt_gas_type res 5 ; 0=Disabled, 1=First, 2=Travel, 3=Deco
592 opt_dil_type res 5 ; 0=Disabled, 1=First, 2=Normal 593 opt_dil_type res 5 ; 0=Disabled, 1=First, 2=Normal
593 opt_dive_mode res 1 ; 0=OC, 1=CC, 2=Gauge, 3=Apnea 594 opt_dive_mode res 1 ; 0=OC, 1=CC, 2=Gauge, 3=Apnea, 4=PSCR
594 opt_ppO2_max res 1 ; PPO2 Max for MOD calculation and color coding in divemode 595 opt_ppO2_max res 1 ; PPO2 Max for MOD calculation and color coding in divemode
595 opt_ccr_mode res 1 ; =0: Fixed SP, =1: Sensor 596 opt_ccr_mode res 1 ; =0: Fixed SP, =1: Sensor
596 opt_ppO2_min res 1 ; PPO2 min for Sensors and color coding in divemode 597 opt_ppO2_min res 1 ; PPO2 min for Sensors and color coding in divemode
597 opt_OC_bail_gas_change res 5 ; Gas change depths OC/Bailout 598 opt_OC_bail_gas_change res 5 ; Gas change depths OC/Bailout
598 ;---- Managing Settings 599 ;---- Managing Settings
631 opt_safety_stop_length res 1 ; [s] 632 opt_safety_stop_length res 1 ; [s]
632 opt_safety_stop_start res 1 ; [cbar] 633 opt_safety_stop_start res 1 ; [cbar]
633 opt_safety_stop_end res 1 ; [cbar] 634 opt_safety_stop_end res 1 ; [cbar]
634 opt_safety_stop_reset res 1 ; [cbar] 635 opt_safety_stop_reset res 1 ; [cbar]
635 opt_diveTimeout res 1 ; Timeout for Divemode [min] 636 opt_diveTimeout res 1 ; Timeout for Divemode [min]
637 opt_PSCR_show_ppO2 res 1 ; =1: Show PSCR ppO2 (Instead of OC ppO2)
638 opt_PSCR_drop res 1 ; PSCR Drop [%]
639 opt_PSCR_lungratio res 1 ; PSCR Lung Ratio [1/x]
636 640
637 ;-----------------------------EEPROM DATA ------------------------------------ 641 ;-----------------------------EEPROM DATA ------------------------------------
638 ; Automatic reset of all options when this is changed: 642 ; Automatic reset of all options when this is changed:
639 #define eeprom_opt_serial 0x0005 ; Version 0.5 643 #define eeprom_opt_serial 0x0005 ; Version 0.5
640 644
754 #DEFINE sp2_switched flag13,3 ; =1: This setpoint has been autoselected already 758 #DEFINE sp2_switched flag13,3 ; =1: This setpoint has been autoselected already
755 #DEFINE sp3_switched flag13,4 ; =1: This setpoint has been autoselected already 759 #DEFINE sp3_switched flag13,4 ; =1: This setpoint has been autoselected already
756 #DEFINE sp4_switched flag13,5 ; =1: This setpoint has been autoselected already 760 #DEFINE sp4_switched flag13,5 ; =1: This setpoint has been autoselected already
757 #DEFINE sp5_switched flag13,6 ; =1: This setpoint has been autoselected already 761 #DEFINE sp5_switched flag13,6 ; =1: This setpoint has been autoselected already
758 #DEFINE use_old_batt_flag flag13,7 ; =1: load old battery information after power-on reset 762 #DEFINE use_old_batt_flag flag13,7 ; =1: load old battery information after power-on reset
763
764 #DEFINE FLAG_pscr_mode flag14,0 ; =1: OSTC is in PSCR mode
759 765
760 ;============================================================================= 766 ;=============================================================================
761 ; C-code Routines 767 ; C-code Routines
762 ; PART 2 768 ; PART 2
763 extern deco_calc_CNS_decrease_15min 769 extern deco_calc_CNS_decrease_15min