comparison src/hwos.inc @ 466:7f4c3b2e6bb7

battery gauge handling
author heinrichsweikamp
date Sat, 19 Nov 2016 18:37:47 +0100
parents 0491a84fd0b8
children 4fdf6886004b
comparison
equal deleted inserted replaced
465:025a0ce21f8b 466:7f4c3b2e6bb7
562 analog_sw1 res 1 ; analog value for switch 1 562 analog_sw1 res 1 ; analog value for switch 1
563 analog_sw2 res 1 ; analog value for switch 2 563 analog_sw2 res 1 ; analog value for switch 2
564 battery_type res 1 ; =0:1.5V, =1:3,6V Saft, =2:LiIon 3,7V/0.8Ah, =3:LiIon 3,7V/3.1Ah 564 battery_type res 1 ; =0:1.5V, =1:3,6V Saft, =2:LiIon 3,7V/0.8Ah, =3:LiIon 3,7V/3.1Ah
565 uptime res 4 ; Uptime [s] 565 uptime res 4 ; Uptime [s]
566 lastdive_time res 4 ; Time since last dive [s] 566 lastdive_time res 4 ; Time since last dive [s]
567 battery_acumulated_charge res 2 ; Raw values in battery gauge IC
568 gauge_status_byte res 1 ; Gauge IC status byte
567 569
568 ;----------------------------------------------------------------------------- 570 ;-----------------------------------------------------------------------------
569 ; Reserve BANK2 for general purpose buffer (strings, images, etc). 571 ; Reserve BANK2 for general purpose buffer (strings, images, etc).
570 ; NOTE: Needs to be aligned with a bank (LOW(buffer)==0). 572 ; NOTE: Needs to be aligned with a bank (LOW(buffer)==0).
571 buffer udata_ovr 0x200 573 buffer udata_ovr 0x200