comparison src/hwos.inc @ 475:237afdfb4918

2.12 release candidate... buttons invertable via PC command (OSTC+ only)
author heinrichsweikamp
date Fri, 13 Jan 2017 13:08:17 +0100
parents 2880aa1264f5
children 34e73dc68799
comparison
equal deleted inserted replaced
474:2880aa1264f5 475:237afdfb4918
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'11' ; Software version XX.YY 25 #DEFINE softwareversion_y d'12' ; Software version XX.YY
26 #DEFINE softwareversion_beta 1 ; (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 .17 28 #DEFINE firmware_expire_year .18
29 #DEFINE firmware_expire_month .10 29 #DEFINE firmware_expire_month .5
30 #DEFINE firmware_expire_day .10 30 #DEFINE firmware_expire_day .1
31 31
32 #DEFINE comm_service_key 0xABCDEF 32 #DEFINE comm_service_key 0xABCDEF
33 33
34 ;----------------------------------------------------------------------------- 34 ;-----------------------------------------------------------------------------
35 35
570 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 570 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 uptime res 4 ; Uptime [s] 571 uptime res 4 ; Uptime [s]
572 lastdive_time res 4 ; Time since last dive [s] 572 lastdive_time res 4 ; Time since last dive [s]
573 battery_acumulated_charge res 2 ; Raw values in battery gauge IC 573 battery_acumulated_charge res 2 ; Raw values in battery gauge IC
574 gauge_status_byte res 1 ; Gauge IC status byte 574 gauge_status_byte res 1 ; Gauge IC status byte
575 button_polarity res 1 ; 0xFF (Both normal), 0x00 (Both inverted), 0x01 (Left inverted only), 0x02 (Right inverted only)
575 576
576 ;----------------------------------------------------------------------------- 577 ;-----------------------------------------------------------------------------
577 ; Reserve BANK2 for general purpose buffer (strings, images, etc). 578 ; Reserve BANK2 for general purpose buffer (strings, images, etc).
578 ; NOTE: Needs to be aligned with a bank (LOW(buffer)==0). 579 ; NOTE: Needs to be aligned with a bank (LOW(buffer)==0).
579 buffer udata_ovr 0x200 580 buffer udata_ovr 0x200