Mercurial > public > hwos_code
comparison src/hwos.inc @ 389:9175429bdeba
CHANGE: Logbook now shows end-of-dive date and time for dives made with firmware <1.92 indicated by an icon in the logbook
CHANGE: Logbook shows start-of-dive date and time for dives made with firmware >=1.92
BUGFIX: Text alignment in logbook
author | heinrichsweikamp |
---|---|
date | Tue, 27 Oct 2015 13:45:10 +0100 |
parents | d8e2cf055fc3 |
children | 9e5abca93c32 |
comparison
equal
deleted
inserted
replaced
388:d8e2cf055fc3 | 389:9175429bdeba |
---|---|
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'1' ; Software version XX.YY | 22 #DEFINE softwareversion_x d'1' ; Software version XX.YY |
23 #DEFINE softwareversion_y d'91' ; Software version XX.YY | 23 #DEFINE softwareversion_y d'92' ; 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 .16 | 26 #DEFINE firmware_expire_year .16 |
27 #DEFINE firmware_expire_month .10 | 27 #DEFINE firmware_expire_month .10 |
28 #DEFINE firmware_expire_day .1 | 28 #DEFINE firmware_expire_day .1 |
79 #DEFINE min_mv .80 ; = 8mV | 79 #DEFINE min_mv .80 ; = 8mV |
80 #DEFINE max_mv .2500 ; = 250mV | 80 #DEFINE max_mv .2500 ; = 250mV |
81 #DEFINE ignore_mv .3500 ; = 350mV (To suppress ghost readings for long, open cables) | 81 #DEFINE ignore_mv .3500 ; = 350mV (To suppress ghost readings for long, open cables) |
82 | 82 |
83 ; Profile recording parameters | 83 ; Profile recording parameters |
84 #DEFINE logbook_profile_version 0x23 | 84 #DEFINE logbook_profile_version 0x24 |
85 #DEFINE samplingrate_apnoe .1 ; [seconds] | 85 #DEFINE samplingrate_apnoe .1 ; [seconds] |
86 ; Warning: Divisors must be <.16 ! | 86 ; Warning: Divisors must be <.16 ! |
87 #DEFINE div_temperature .6 ; x samplingrate [s] | 87 #DEFINE div_temperature .6 ; x samplingrate [s] |
88 #DEFINE div_deco .6 ; x samplingrate [s] | 88 #DEFINE div_deco .6 ; x samplingrate [s] |
89 #DEFINE div_gf .12 ; x samplingrate [s] | 89 #DEFINE div_gf .12 ; x samplingrate [s] |
526 s8_rawdata_sensor1 res 3 ; 24bit A/D raw data from S8 HUD sensor 1 | 526 s8_rawdata_sensor1 res 3 ; 24bit A/D raw data from S8 HUD sensor 1 |
527 s8_rawdata_sensor2 res 3 ; 24bit A/D raw data from S8 HUD sensor 2 | 527 s8_rawdata_sensor2 res 3 ; 24bit A/D raw data from S8 HUD sensor 2 |
528 s8_rawdata_sensor3 res 3 ; 24bit A/D raw data from S8 HUD sensor 3 | 528 s8_rawdata_sensor3 res 3 ; 24bit A/D raw data from S8 HUD sensor 3 |
529 | 529 |
530 hud_battery_mv res 2 ; hud/ppo2 monitor battery voltage in mV | 530 hud_battery_mv res 2 ; hud/ppo2 monitor battery voltage in mV |
531 start_day res 1 ; At start of dive (For logbook) | |
532 start_month res 1 ; At start of dive (For logbook) | |
533 start_year res 1 ; At start of dive (For logbook) | |
534 start_hours res 1 ; At start of dive (For logbook) | |
535 start_mins res 1 ; At start of dive (For logbook) | |
531 | 536 |
532 ;----------------------------------------------------------------------------- | 537 ;----------------------------------------------------------------------------- |
533 ; Reserve BANK2 for general purpose buffer (strings, images, etc). | 538 ; Reserve BANK2 for general purpose buffer (strings, images, etc). |
534 ; NOTE: Needs to be aligned with a bank (LOW(buffer)==0). | 539 ; NOTE: Needs to be aligned with a bank (LOW(buffer)==0). |
535 buffer udata_ovr 0x200 | 540 buffer udata_ovr 0x200 |