comparison src/hwos.inc @ 608:d866684249bd

work on 2.99 stable
author heinrichsweikamp
date Mon, 07 Jan 2019 21:13:43 +0100
parents c5151a490d88
children b87f23fae743
comparison
equal deleted inserted replaced
607:c5151a490d88 608:d866684249bd
1 ;============================================================================= 1 ;=============================================================================
2 ; 2 ;
3 ; File hwos.inc REFACTORED VERSION V2.99e 3 ; File hwos.inc REFACTORED VERSION V2.99f
4 ; 4 ;
5 ; OSTC Platform definitions 5 ; OSTC Platform definitions
6 ; 6 ;
7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. 7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved.
8 ;============================================================================= 8 ;=============================================================================
40 40
41 41
42 ; Firmware Version 42 ; Firmware Version
43 #DEFINE softwareversion_x .2 ; Software Version, major (1 - 9) 43 #DEFINE softwareversion_x .2 ; Software Version, major (1 - 9)
44 #DEFINE softwareversion_y .99 ; Software Version, minor (1 - 99) 44 #DEFINE softwareversion_y .99 ; Software Version, minor (1 - 99)
45 #DEFINE softwareversion_beta .5 ; 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 .19 48 #DEFINE firmware_expire_year .20
49 #DEFINE firmware_expire_month .2 49 #DEFINE firmware_expire_month .2
50 #DEFINE firmware_expire_day .1 50 #DEFINE firmware_expire_day .1
51 51
52 ; Magic Cookie Definition 52 ; Magic Cookie Definition
53 #DEFINE comm_service_key 0xABCDEF 53 #DEFINE comm_service_key 0xABCDEF
167 #DEFINE ppo2_warning_loop_lowest .20 ; [cbar] (min. value) for minimum on loop 167 #DEFINE ppo2_warning_loop_lowest .20 ; [cbar] (min. value) for minimum on loop
168 #DEFINE ppo2_warning_loop_default .40 ; [cbar] (default Value) for minimum on loop 168 #DEFINE ppo2_warning_loop_default .40 ; [cbar] (default Value) for minimum on loop
169 #DEFINE ppo2_warning_loop_highest .60 ; [cbar] (max. value) for minimum on loop 169 #DEFINE ppo2_warning_loop_highest .60 ; [cbar] (max. value) for minimum on loop
170 170
171 #DEFINE ppo2_warning_high_lowest .120 ; [cbar] (min. value) for maximum in none-deco phase 171 #DEFINE ppo2_warning_high_lowest .120 ; [cbar] (min. value) for maximum in none-deco phase
172 #DEFINE ppo2_warning_high_default .140 ; [cbar] (default value) for maximum in none-deco phase 172 #DEFINE ppo2_warning_high_default .160 ; [cbar] (default value) for maximum in none-deco phase
173 #DEFINE ppo2_warning_high_highest .160 ; [cbar] (max. value) for maximum in none-deco phase 173 #DEFINE ppo2_warning_high_highest .160 ; [cbar] (max. value) for maximum in none-deco phase
174 174
175 #DEFINE ppo2_warning_deco_lowest .120 ; [cbar] (min. value) for maximum in deco phase 175 #DEFINE ppo2_warning_deco_lowest .120 ; [cbar] (min. value) for maximum in deco phase
176 #DEFINE ppo2_warning_deco_default .160 ; [cbar] (default Value) for maximum in deco phase 176 #DEFINE ppo2_warning_deco_default .160 ; [cbar] (default Value) for maximum in deco phase
177 #DEFINE ppo2_warning_deco_highest .160 ; [cbar] (max. value) for maximum in deco phase 177 #DEFINE ppo2_warning_deco_highest .160 ; [cbar] (max. value) for maximum in deco phase
201 ; Battery Thresholds 201 ; Battery Thresholds
202 #DEFINE lithium_36v_empty .2400 ; [mV] Saft 3.6 V LS14500 AA - threshold for battery percent display 202 #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!) 203 #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 204 #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 205 #DEFINE aa_15v_low .1100 ; [mV] according to Energizer data sheet EBC-4201R, page 2
206 #DEFINE color_code_battery_low .10 ; [%] 206 #DEFINE color_code_battery_low .30 ; [%] also acts as threshold for setting brightness level ECO when in dive mode
207 #DEFINE battery_show_level .24 ; [%] 207 #DEFINE battery_show_level .24 ; [%]
208 208
209 ; 3.6 Volt Battery sensing Data Points at 70 mA Load 209 ; 3.6 Volt Battery sensing Data Points at 70 mA Load
210 #DEFINE lithium_36v_75 .3000 ; [mV] 210 #DEFINE lithium_36v_75 .3000 ; [mV]
211 #DEFINE lithium_36v_50 .2900 ; [mV] 211 #DEFINE lithium_36v_50 .2900 ; [mV]
339 #DEFINE ostc_rx_present hardware_flag1,5 ; =1: OSTC has RX circuity 339 #DEFINE ostc_rx_present hardware_flag1,5 ; =1: OSTC has RX circuity
340 ; hardware_flag1,6 ; --- unused 340 ; hardware_flag1,6 ; --- unused
341 ; hardware_flag1,7 ; --- unused 341 ; hardware_flag1,7 ; --- unused
342 342
343 ; Hardware Descriptor 2 343 ; Hardware Descriptor 2
344 #DEFINE screen_type hardware_flag2,0 ; =1: display 1, =0; display 0 344 #DEFINE screen_type hardware_flag2,0 ; =1: display 1, =0; display 0
345 #DEFINE compass_type hardware_flag2,1 ; =1: compass 1, =0: compass 0 345 #DEFINE compass_type hardware_flag2,1 ; =1: compass 1, =0: compass 0
346 #DEFINE compass_type2 hardware_flag2,2 ; =1: compass 2, =0: compass 0 or 1 346 #DEFINE compass_type2 hardware_flag2,2 ; =1: compass 2, =0: compass 0 or 1
347 #DEFINE analog_switches hardware_flag2,3 ; =1: analog switches available 347 #DEFINE analog_switches hardware_flag2,3 ; =1: analog switches available
348 ; hardware_flag2,4 ; --- unused 348 #DEFINE screen_type2 hardware_flag2,4 ; =1: display 2, =0: display 0 or 1
349 ; hardware_flag2,5 ; --- unused 349 ; hardware_flag2,5 ; --- unused
350 ; hardware_flag2,6 ; --- unused 350 ; hardware_flag2,6 ; --- unused
351 ; hardware_flag2,7 ; --- unused 351 ; hardware_flag2,7 ; --- unused
352 352
353 ; Control of numerical Output 353 ; Control of numerical Output
704 ;---- Data for Logging 704 ;---- Data for Logging
705 CNS_start res 2 ; CNS value at beginning of dive 705 CNS_start res 2 ; CNS value at beginning of dive
706 GF_start res 1 ; GF value at beginning of dive 706 GF_start res 1 ; GF value at beginning of dive
707 707
708 ;---- CPU mode 708 ;---- CPU mode
709 speed_setting res 1 ; =1: eco, =2: normal, =3: fastest 709 cpu_speed_request res 1 ; requested CPU speed: =1: eco, =2: normal, =3: fastest
710 cpu_speed_state res 1 ; current CPU speed: =1: eco, =2: normal, =3: fastest
710 711
711 ;---- Data for graphical Compass 712 ;---- Data for graphical Compass
712 xRD res 2 ; virtual compass ruler offset 713 xRD res 2 ; virtual compass ruler offset
713 xRDr res 2 ; virtual compass ruler offset - right end 714 xRDr res 2 ; virtual compass ruler offset - right end
714 xRD180 res 2 ; virtual compass ruler offset for the -180 marker 715 xRD180 res 2 ; virtual compass ruler offset for the -180 marker
768 win_width res 2 769 win_width res 2
769 win_height res 1 770 win_height res 1
770 win_bargraph res 1 771 win_bargraph res 1
771 win_color1 res 1 772 win_color1 res 1
772 win_color2 res 1 773 win_color2 res 1
774 win_color3 res 1 ; For Display 2
775 win_color4 res 1 ; For Display 2
776 win_color5 res 1 ; For Display 2
773 win_font res 1 777 win_font res 1
774 778
775 ;---- Interface to Math Functions 779 ;---- Interface to Math Functions
776 divA res 2 780 divA res 2
777 xC res 4 781 xC res 4