Mercurial > public > hwos_code
comparison src/hwos.inc @ 444:d93d75ae01bf
Adjustable timeout for Divemode (Config 0x48)
| author | heinrichsweikamp |
|---|---|
| date | Wed, 17 Aug 2016 09:50:37 +0200 |
| parents | 360acdcda0d7 |
| children | d770f3d204c5 |
comparison
equal
deleted
inserted
replaced
| 443:84bb5cbebe57 | 444:d93d75ae01bf |
|---|---|
| 18 #include <p18f87k22.inc> | 18 #include <p18f87k22.inc> |
| 19 #include <ports.inc> ; Portmap | 19 #include <ports.inc> ; Portmap |
| 20 | 20 |
| 21 ; Firmware definition | 21 ; Firmware definition |
| 22 #DEFINE softwareversion_x d'2' ; Software version XX.YY | 22 #DEFINE softwareversion_x d'2' ; Software version XX.YY |
| 23 #DEFINE softwareversion_y d'09' ; Software version XX.YY | 23 #DEFINE softwareversion_y d'10' ; Software version XX.YY |
| 24 #DEFINE softwareversion_beta 0 ; (and 0 for release) | 24 #DEFINE softwareversion_beta 0 ; (and 0 for release) |
| 25 ; Firmware version will appear in "Change Firmware" style | 25 ; Firmware version will appear in "Change Firmware" style |
| 26 #DEFINE firmware_expire_year .17 | 26 #DEFINE firmware_expire_year .17 |
| 27 #DEFINE firmware_expire_month .6 | 27 #DEFINE firmware_expire_month .8 |
| 28 #DEFINE firmware_expire_day .10 | 28 #DEFINE firmware_expire_day .10 |
| 29 | 29 |
| 30 #DEFINE comm_service_key 0xABCDEF | 30 #DEFINE comm_service_key 0xABCDEF |
| 31 | 31 |
| 32 ;----------------------------------------------------------------------------- | 32 ;----------------------------------------------------------------------------- |
| 110 ; Dive mode limits and thresholds | 110 ; Dive mode limits and thresholds |
| 111 #DEFINE start_dive_threshold .100 ; [cm] | 111 #DEFINE start_dive_threshold .100 ; [cm] |
| 112 #DEFINE high_altitude_dive_threshold .300;[cm] | 112 #DEFINE high_altitude_dive_threshold .300;[cm] |
| 113 #DEFINE apnoe_timeout .15 ; [min] | 113 #DEFINE apnoe_timeout .15 ; [min] |
| 114 #DEFINE divemode_menuview_timeout .10 ; [s] | 114 #DEFINE divemode_menuview_timeout .10 ; [s] |
| 115 #DEFINE divemode_timeout .300 ; [s] | 115 #DEFINE divemode_timeout_default .6 ; [min] |
| 116 #DEFINE divemode_menu_timeout .30 ; [s] | 116 #DEFINE divemode_menu_timeout .30 ; [s] |
| 117 #DEFINE ppo2_warning_low .19 ; [cbar] (Default value) | 117 #DEFINE ppo2_warning_low .19 ; [cbar] (Default value) |
| 118 #DEFINE ppo2_lowest_setting .16 ; [cbar] (Minimum value) | 118 #DEFINE ppo2_lowest_setting .16 ; [cbar] (Minimum value) |
| 119 #DEFINE ppo2_display_high .120 ; [cbar] | 119 #DEFINE ppo2_display_high .120 ; [cbar] |
| 120 #DEFINE ppo2_warning_high .160 ; [cbar] (Default value) | 120 #DEFINE ppo2_warning_high .160 ; [cbar] (Default value) |
| 590 opt_temperature_adjust res 1 ; SIGNED int (two's complement), -2.0/+2.0 °C max. | 590 opt_temperature_adjust res 1 ; SIGNED int (two's complement), -2.0/+2.0 °C max. |
| 591 opt_safety_stop_length res 1 ; [s] | 591 opt_safety_stop_length res 1 ; [s] |
| 592 opt_safety_stop_start res 1 ; [cbar] | 592 opt_safety_stop_start res 1 ; [cbar] |
| 593 opt_safety_stop_end res 1 ; [cbar] | 593 opt_safety_stop_end res 1 ; [cbar] |
| 594 opt_safety_stop_reset res 1 ; [cbar] | 594 opt_safety_stop_reset res 1 ; [cbar] |
| 595 opt_diveTimeout res 1 ; Timeout for Divemode [min] | |
| 595 | 596 |
| 596 ;-----------------------------EEPROM DATA ------------------------------------ | 597 ;-----------------------------EEPROM DATA ------------------------------------ |
| 597 ; Automatic reset of all options when this is changed: | 598 ; Automatic reset of all options when this is changed: |
| 598 #define eeprom_opt_serial 0x0005 ; Version 0.5 | 599 #define eeprom_opt_serial 0x0005 ; Version 0.5 |
| 599 | 600 |
