Mercurial > public > hwos_code
comparison src/hwos.inc @ 503:4542d03f748a
NEW: Last Dive customviews in surface mode with divetime, depth and interval
author | heinrichsweikamp |
---|---|
date | Sun, 11 Jun 2017 17:11:40 +0200 |
parents | e8351dd7bb90 |
children | b9f06f1a1f74 |
comparison
equal
deleted
inserted
replaced
502:0910c227018f | 503:4542d03f748a |
---|---|
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'16' ; Software version XX.YY | 25 #DEFINE softwareversion_y d'17' ; Software version XX.YY |
26 #DEFINE softwareversion_beta 0 ; (and 0 for release) | 26 #DEFINE softwareversion_beta 0 ; (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 .4 | 29 #DEFINE firmware_expire_month .4 |
30 #DEFINE firmware_expire_day .3 | 30 #DEFINE firmware_expire_day .3 |
569 analog_sw1 res 1 ; analog value for switch 1 | 569 analog_sw1 res 1 ; analog value for switch 1 |
570 analog_sw2 res 1 ; analog value for switch 2 | 570 analog_sw2 res 1 ; analog value for switch 2 |
571 battery_type res 1 ; =0:1.5V, =1:3,6V Saft, =2:LiIon 3,7V/0.8Ah, =3:LiIon 3,7V/3.1Ah, =4: LiIon 3,7V/2.3Ah | 571 battery_type res 1 ; =0:1.5V, =1:3,6V Saft, =2:LiIon 3,7V/0.8Ah, =3:LiIon 3,7V/3.1Ah, =4: LiIon 3,7V/2.3Ah |
572 uptime res 4 ; Uptime [s] | 572 uptime res 4 ; Uptime [s] |
573 lastdive_time res 4 ; Time since last dive [s] | 573 lastdive_time res 4 ; Time since last dive [s] |
574 lastdive_duration res 3 ; mins:2 and secs | |
575 lastdive_maxdepth res 2 ; in mbar | |
574 battery_acumulated_charge res 2 ; Raw values in battery gauge IC | 576 battery_acumulated_charge res 2 ; Raw values in battery gauge IC |
575 gauge_status_byte res 1 ; Gauge IC status byte | 577 gauge_status_byte res 1 ; Gauge IC status byte |
576 button_polarity res 1 ; 0xFF (Both normal), 0x00 (Both inverted), 0x01 (Left inverted only), 0x02 (Right inverted only) | 578 button_polarity res 1 ; 0xFF (Both normal), 0x00 (Both inverted), 0x01 (Left inverted only), 0x02 (Right inverted only) |
577 | 579 |
578 ;----------------------------------------------------------------------------- | 580 ;----------------------------------------------------------------------------- |