Mercurial > public > hwos_code
comparison src/hwos.inc @ 615:b87f23fae743
work on new battery menu
author | heinrichsweikamp |
---|---|
date | Sat, 02 Feb 2019 17:39:44 +0100 |
parents | d866684249bd |
children | 935e20e16dff |
comparison
equal
deleted
inserted
replaced
614:a32212cd5ea9 | 615:b87f23fae743 |
---|---|
38 #DEFINE _language_1 en ; first or single language - must be set to en, de, fr, or it, defaults to en | 38 #DEFINE _language_1 en ; first or single language - must be set to en, de, fr, or it, defaults to en |
39 #DEFINE _language_2 none ; second language or none | 39 #DEFINE _language_2 none ; second language or none |
40 | 40 |
41 | 41 |
42 ; Firmware Version | 42 ; Firmware Version |
43 #DEFINE softwareversion_x .2 ; Software Version, major (1 - 9) | 43 #DEFINE softwareversion_x .3 ; Software Version, major (1 - 9) |
44 #DEFINE softwareversion_y .99 ; Software Version, minor (1 - 99) | 44 #DEFINE softwareversion_y .00 ; Software Version, minor (1 - 99) |
45 #DEFINE softwareversion_beta .0 ; 0= Release, 1= Beta-1, 2= Beta-2, ... (0 - 255) | 45 #DEFINE softwareversion_beta .0 ; 0= Release, 1= Beta-1, 2= Beta-2, ... (0 - 255) |
46 | 46 |
47 ; Firmware Expiration Date, will cause version to be displayed in "Update Firmware" style after the following date: | 47 ; Firmware Expiration Date, will cause version to be displayed in "Update Firmware" style after the following date: |
48 #DEFINE firmware_expire_year .20 | 48 #DEFINE firmware_expire_year .20 |
49 #DEFINE firmware_expire_month .2 | 49 #DEFINE firmware_expire_month .2 |
197 #DEFINE color_code_velocity_warn_high .11 ; [m/min] | 197 #DEFINE color_code_velocity_warn_high .11 ; [m/min] |
198 #DEFINE color_code_velocity_attn_high .10 ; [m/min] | 198 #DEFINE color_code_velocity_attn_high .10 ; [m/min] |
199 #DEFINE velocity_display_threshold_1 .3 ; [m/min] | 199 #DEFINE velocity_display_threshold_1 .3 ; [m/min] |
200 | 200 |
201 ; Battery Thresholds | 201 ; Battery Thresholds |
202 #DEFINE max_allowed_battery_temp .500 ; Max temperature before charging is disabled in 0.1°C | |
203 | |
202 #DEFINE lithium_36v_empty .2400 ; [mV] Saft 3.6 V LS14500 AA - threshold for battery percent display | 204 #DEFINE lithium_36v_empty .2400 ; [mV] Saft 3.6 V LS14500 AA - threshold for battery percent display |
203 #DEFINE lithium_36v_low .2000 ; [mV] (must be bigger than aa_15v_high!) | 205 #DEFINE lithium_36v_low .2000 ; [mV] (must be bigger than aa_15v_high!) |
204 #DEFINE aa_15v_high .1550 ; [mV] Energizer 1.5 V E2 AA | 206 #DEFINE aa_15v_high .1550 ; [mV] Energizer 1.5 V E2 AA |
205 #DEFINE aa_15v_low .1100 ; [mV] according to Energizer data sheet EBC-4201R, page 2 | 207 #DEFINE aa_15v_low .1100 ; [mV] according to Energizer data sheet EBC-4201R, page 2 |
206 #DEFINE color_code_battery_low .30 ; [%] also acts as threshold for setting brightness level ECO when in dive mode | 208 #DEFINE color_code_battery_low .30 ; [%] also acts as threshold for setting brightness level ECO when in dive mode |
544 #DEFINE transmitter2_lost flag17,4 ; =1: transmitter 2 lost is an old message | 546 #DEFINE transmitter2_lost flag17,4 ; =1: transmitter 2 lost is an old message |
545 #DEFINE transmitter2_battery flag17,5 ; =1: transmitter 2 battery low is an old message | 547 #DEFINE transmitter2_battery flag17,5 ; =1: transmitter 2 battery low is an old message |
546 #DEFINE transmitter2_pres_warn flag17,6 ; =1: transmitter 2 pressure warning is an old message | 548 #DEFINE transmitter2_pres_warn flag17,6 ; =1: transmitter 2 pressure warning is an old message |
547 #DEFINE transmitter2_pres_att flag17,7 ; =1: transmitter 2 pressure attention is an old message | 549 #DEFINE transmitter2_pres_att flag17,7 ; =1: transmitter 2 pressure attention is an old message |
548 ENDIF | 550 ENDIF |
551 | |
552 #DEFINE battery_overtemp flag18,0 ; =1: The battery was charged and temp was too high (Only cleared on Reset) | |
549 | 553 |
550 ; Low-Level Display Control | 554 ; Low-Level Display Control |
551 #DEFINE aa_antialias aa_flags,0 ; used by aa_wordprocessor | 555 #DEFINE aa_antialias aa_flags,0 ; used by aa_wordprocessor |
552 #DEFINE aa_color_quart aa_flags,1 ; used by aa_wordprocessor | 556 #DEFINE aa_color_quart aa_flags,1 ; used by aa_wordprocessor |
553 #DEFINE aa_color_half aa_flags,2 ; used by aa_wordprocessor | 557 #DEFINE aa_color_half aa_flags,2 ; used by aa_wordprocessor |
747 flag13 res 1 | 751 flag13 res 1 |
748 flag14 res 1 | 752 flag14 res 1 |
749 flag15 res 1 | 753 flag15 res 1 |
750 flag16 res 1 | 754 flag16 res 1 |
751 flag17 res 1 | 755 flag17 res 1 |
756 flag18 res 1 | |
752 hardware_flag1 res 1 ; hardware descriptor flags 1 | 757 hardware_flag1 res 1 ; hardware descriptor flags 1 |
753 hardware_flag2 res 1 ; hardware descriptor flags 2 | 758 hardware_flag2 res 1 ; hardware descriptor flags 2 |
754 tft_update_flags res 3 | 759 tft_update_flags res 3 |
755 | 760 |
756 ;---- Interface to Data Conversion & | 761 ;---- Interface to Data Conversion & |
984 battery_capacity res 2 ; For battery gauge IC | 989 battery_capacity res 2 ; For battery gauge IC |
985 battery_offset res 2 ; For battery gauge IC | 990 battery_offset res 2 ; For battery gauge IC |
986 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 | 991 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 |
987 battery_acumulated_charge res 2 ; Raw values in battery gauge IC | 992 battery_acumulated_charge res 2 ; Raw values in battery gauge IC |
988 gauge_status_byte res 1 ; Gauge IC status byte | 993 gauge_status_byte res 1 ; Gauge IC status byte |
994 battery_temperature res 2 ; in 0.1°C | |
989 | 995 |
990 analog_sw1_raw res 2 ; idle values (average) | 996 analog_sw1_raw res 2 ; idle values (average) |
991 analog_sw2_raw res 2 ; idle values (average) | 997 analog_sw2_raw res 2 ; idle values (average) |
992 analog_counter res 1 ; for averaging | 998 analog_counter res 1 ; for averaging |
993 analog_sw1 res 1 ; analog value for switch 1 | 999 analog_sw1 res 1 ; analog value for switch 1 |